
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