Hi Robert , your program is fine except for one logical error you made
check out the first line of your code after **************************
if(0<day&&day>=31) this if condition is not correct , the correct condition would be
if(0<day&&day<=31) now your program should work fine
you were originally checking if day is greater than 0 and greater than 31 , but
you should have checked if day greater than 0 and less than or equal to 31...
also after the condition if(month == 2) you have missed out a bracket , so check that too
[ April 29, 2008: Message edited by: abhishek pendkay ]