Search This Blog

C Program Prints Students Marks Sheet With Grade

C Program Prints Students Marks Sheet With Grade :
//C Program Prints Students Marks Sheet With Grade

#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);
if(pre>=91 && pre<=100)
printf("\n Preformance:= Outstanding and Grade:= A");
else if(pre>=81 && pre<91)
printf("\n Preformance:= Excelleant and Grade:= B");
else if(pre>=71 && pre<81)
printf("\n Preformance:= Very Good and Grade:= C");
else if(pre>=61 && pre<71)
printf("\n Preformance:= Good and Grade:= D");
else if(pre>=51 && pre<61)
printf("\n Preformance:= Avarage and Grade:= E");
else
printf("\n Preformance:= Fail and Grade:= F");
getch();
}
OUTPUT
C Program Prints Students Marks Sheet With Grade

No comments:

Post a Comment