Then you probably didn't write
if (age>= 1 && age<= 20 )
did you?

Have a look at the tutorials on this website, or the list of books at the top of the C board.