How many equals signs are involved in a test for equality?
Also the operators || and && have different precedence, which you have not taken into account.
Type: Posts; User: grumpy
How many equals signs are involved in a test for equality?
Also the operators || and && have different precedence, which you have not taken into account.
At no point, after reading it, does your code make use of the variable day.
Your logic for computing number of days in a month is completely broken.
You need to look more closely at the logic...