Marks Obtained By A Student In One Subject Display The Grades
/* PROGRAM TO ACCEPT MARKS OBTAINED BY A STUDENT IN ONE SUBJECT,BASED ON THE MARKS OBTAINED DISPLAY THE FOLLOWING GRADES MARKS... > 100 INVALID MARKS 80 -> 100 DISTINCTION 60 -> 79 FIRST CLASS 50 -> 59 SECOND CLASS < 50 FAIL */ #include
#include
void main() { int m; clrscr(); printf("\nEnter the marks obtained by the student(Max.100)\n\n"); scanf("%d",&m); if(m>100) printf("\ninvalid marks"); else if(m>=80) printf("\ndistinction"); else if(m>=60) printf("\nfirst class"); else if(m>=50) printf("\nsecond class"); else printf("\nfailed"); getch(); }
Please send comments to
vgdarur.javafive@blogger.com
Copyright © 2008 - iForeRunner.com
http://www.iforerunner.com/