Jul-02-2020, 03:29 PM
At line 6 you check to see if the year matches a leap year. But what happens if it doesn't? Since there's no
The while loop runs again, but without changing the year. So it just tests over and over again.
else
clause for that if, it just falls past the block to the end of the while.The while loop runs again, but without changing the year. So it just tests over and over again.