#include<stdio.h>
#include<conio.h>
void main()
{
int num;
clrscr();
printf("Enter Your Marks\n");
scanf("%d",&num);
if(num>=80&&num<100)
{
printf("Your Grade is A+");
}
else if(num>=70&&num<80)
{
printf("Your Grade is A");
}
else if(num>=60&&num<70)
{
printf("Your Grade is B");
}
else if(num>=50&&num<60)
{
printf("Your Grade is C");
}
else if(num>40&&num<50)
{
printf("Your Grade is D");
}
else if(num<40&&num>0)
{
printf("Sorry,You are Failed");
}
else
{
printf("Wrong Marks,Try Again");
}
getch();
}
0 comments:
Post a Comment