if(isleapyear = true)
A bit short of
signs in these two statements. Also your while loop should not contain the
statement, otherwise it may claim that 2003 is a leap year.
loop is pointless, even after correcting the
it will not work.