Thread: Grade program
View Single Post
Old 11-01-2006, 10:32 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
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 ??
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote