Try:
Code:
scanf("%d", &grade);
And change your conditions to somethign usefull..
Code:
if (grade <= 0 && grade>= 59)
How is tha possible ?? a grade which is less than 0 and at teh same time higher than 59 ???
You might want to change your testing conditions to somethign like:
Code:
if (grade >= 0 && grade<= 59)
DO you see the difference now ??