![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbqWh0sehDtvuKfv0TEuQCgqWwSDUB5kxMcyZhSwZ3gpHVNF-hRaQZY2ZuHYA1-KgvdFUUbCW0egFndN5QKHqitEHpcsDs9WhSk9_8xJyVmRAlcwdcMD9DNuQlhGlVShfaVneauPmhf3iS/s640/C+Program+to+Find+the+Grade+of+Student+Using+If-Else+Ladder.jpg)
Using this program user can to Find the Grade of Student using If-Else Ladder.
Program:
//C Program to Find the Grade of Student Using If-Else Ladder By Slashmycode.com
#include<stdio.h>
#include<conio.h>
void
main()
{
int
score;
clrscr();
printf("Enter
the score");
scanf("%d",&score);
if(score>=90)
printf("You
have got A grade");
else
if(score>=80)
printf("you
have got B grade");
else
if(score>=70)
printf("you
have got C grade");
else
if(score>=60)
printf("You
have got D grade");
else
printf("You
have failed!!");
getch();
//C Program to Find the Grade of Student Using If-Else Ladder By Slashmycode.com
}
See another example
Output:
No comments:
Post a Comment
Feel free to ask us any question regarding this post