Search This Blog

C Program Prints Students Totals Marks With Percentage

C Program Prints Students Totals Marks With Percentage :
//C Program Prints Students Totals Marks With Percentage

#include<stdio.h>
#include<conio.h>
void main()
{
int pre,total;
int eng,hin,eco,comp;
clrscr();
printf("\n\n:: Enter the Marks Out of 100 ::\n");
printf("\n Enter the English Marks:= ");
scanf("%d",&eng);
printf("\n Enter the Hindi Marks:= ");
scanf("%d",&hin);
printf("\n Enter the Economic Marks:= ");
scanf("%d",&eco);
printf("\n Enter the Computer Marks:= ");
scanf("%d",&comp);
total=eng+hin+eco+comp;
pre=total/4;
printf("\n The Totale Marks is:= %d",total);
printf("\n The Precentage is:= %d",pre);
getch();
}
OUTPUT
C Program Prints Students Totals Marks With Percentage

No comments:

Post a Comment