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