Department of Applied Physics: Assignment #02 Q1
Department of Applied Physics: Assignment #02 Q1
PHYSICS
ASSIGNMENT #02
Q1
#include <studio.h>
#include<conio.h>
Void main (void);
{
Clrscr();
Float math,physic,chemistry, urdu, English,Total,percentage;
Printf(enter marks obtain in English out of 100:);
Scanf(%f,&english);
Printf(enter the marks obtain in urdu out of 100:);
Scanf(%f,&urdu);
Printf(enter the marks obtain in physics out of 100:);
scanf(%f,&phyiscs );
printf(enter the marks obtain in chemistry out of 100:);
scanf(%f,&chemistry);
printf(enter the marks obtain in maths out of 100:)
scanf(%f,&math);
clrscr()
Total=math+physic+chemistry+urdu+English;
Percentage=(Total/500)*100;
Printf(\n\n);
Printf(marks obtained in English out of 100:%.2f\n\n;English);