Input total marks and display grade. Grade is calculated as follows.
Input total marks and display grade. Grade is calculated as follows.





Total Marks | Income Tax |
---|---|
>=360 | First class |
< 360 but >=270 | Second class |
< 270 but >=210 | Pass class |
<210 | Fail |
#include< #include< #include< void main( ) { int tm; printf("Enter Value of X"); scanf("%d", &tk); if (tm >= 360) printf("Grade is First Class\n"); else if (tm >=270) printf("Grade is Second Class\n"); else if (tm <= 210) printf("Grade is Pass Class"); else printf("Grade is Fail\n"); getch( ); } |
---|
0 comments:
Post a Comment