Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
19 views4 pages

Programming Fundamental LAB - Fall-21 LAB Assignment No. 2: Source Code # 1

The document contains 3 source code examples with C code to print variables and format text output. It includes the student name and ID, and lab assignment details.

Uploaded by

Ameer Hamza
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views4 pages

Programming Fundamental LAB - Fall-21 LAB Assignment No. 2: Source Code # 1

The document contains 3 source code examples with C code to print variables and format text output. It includes the student name and ID, and lab assignment details.

Uploaded by

Ameer Hamza
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Name : Ameer Hamza Student ID : 20711

Programming Fundamental LAB | Fall-21  

LAB Assignment No. 2

Source Code # 1

#include<stdio.h>

void main(){

int a = 5;

float b = 5.5;

char c = 'f';

printf("The value of integer is : %d",a);

printf("\nThe value of float is : %f",b);

printf("\nThe value of char is : %c",c);

getch();

}
OUTPUT:
Source Code # 2

#include<stdio.h>

void main(){

printf("\tLast Semester Marksheet\n");

printf("Course Name:\tCr.Hrs:\tPoints:\n");

printf("Sociology:\t3\t3\n");

printf("ICT:\t\t3\t3\n");

printf("F.E:\t\t3\t3\n");

getch();

OUTPUT:
Source Code # 3

You might also like