I have this code snippet for a leap year if you input a year like 1800 that is not a leap year but if you input a year 2000 it is a leap year how would I code that I feel pretty humble right now because I should be able to figure it out here's the code snippet I working with
I tried using || or but that doesn't work eitherCode:if (year % 4 == 0 && year % 100 != 0 && year % 400 == 0) Console.Write("\nThere are 28 days in this month!"); else Console.Write("\nThere are 29 days in this month!");