#include<stdio.h>
#include<conio.h>
void main()
{
int m;
clrscr();
printf("Enter mark = ");
scanf("%d",&m);
if(m>100)
printf("Please enter mark less than or equal to 100.");
else if(m>=80 && m<=100)
printf("5.00(A+)");
else if(m>=70 && m<80)
printf("4.00(A)");
else if(m>=60 && m<70)
printf("3.50(A-)");
else if(m>=50 && m<60)
printf("3.00(B)");
else if(m>=40 && m<50)
printf("2.00(C)");
else if(m>=33 && m<40)
printf("1.00(D)");
else if(m<33)
printf("F");
getch();
}
///////////////////////////////////////////////////////////////////////////
Copy & paste this code in your TC & run, then you will get output.......
If you have any problem please comment below.........