Print Division


//program to print the division

#include<stdio.h>
#include<conio.h>

void main()
{
 int h,e,m,s,ss,total,per;
 printf("Enter Hindi Marks: ");
 scanf("%d",&h);
 printf("Enter English Marks: ");
 scanf("%d",&e);
 printf("Enter Math Marks: ");
 scanf("%d",&m);
 printf("Enter Science Marks: ");
 scanf("%d",&s);
 printf("Enter S.Science Marks: ");
 scanf("%d",&ss);

 total=h+e+m+s+ss;
 per=total/5;

 printf("Total Marks: %d\n",total);
 printf("Percentage is %d%",per);

getch();
}

Post a Comment

Previous Post Next Post