Write a
program to find the grades status of the student:
#include<stdio.h>
#include<conio.h>
int main()
{
float per;
clrscr();
printf("Enter the total percentage of
the student");
scanf("%f",&per);
if(per>79)
printf("Student has honors");
else if(per>59)
printf("student has 1st
division");
else if(per>49)
printf("Student has 2nd
division");
else if(per>39)
printf("Student has 3rd
division");
else
printf("Fail");
getch();
return(0);
}
OUTPUT:
Enter the total
percentage of the student
92
Student has honors
No comments:
Post a Comment