Hey there, I'm Najam
You can get all my notes and lectures about programming from my site. Subscribe to get notification of my new posts!
#include<stdio.h>
#include<conio.h>
#include<math.h>
main()
{
int maths,phy,chem,urdu,eng,per;
printf("Enter Your Marks One By One\n");
printf("\nmaths:\n");
scanf("%d",&maths);
printf("\nphy:\n");
scanf("%d",&phy);
printf("\nchem:\n");
scanf("%d",&chem);
printf("\nurdu:\n");
scanf("%d",&urdu);
printf("\neng:\n");
scanf("%d",&eng);
per=maths+phy+chem+urdu+eng*100/500;
if(per>=60)
printf("First Division");
else if(per>=50)
printf("Second Division");
else if(per>=40)
printf("Third Division");
else
printf("Failed");
getch();
}
My name is Najam Ul Saqib. I am student of software engineer. In this site i will share all the things which i will learn. Also i am graphic and web designer.
0 comments:
Post a Comment