C programming
Grade Check
#include<conio.h>
#include<stdio.h>
void main()
{
clrscr();
int grade,marks;
scanf("%d",&marks,&grade);
if(marks>79)
printf("Honors");
else
if(marks>59)
printf("first division");
else
if(marks>49)
printf("2nd
division");
else
if(marks>39)
printf("3rd
division");
else
printf("fail");
getch();
}
No comments:
Post a Comment
Please comment bellow. Share your knowledge