Write a program that determines if a year is a leap year. The rules: divisible by 4 is a leap year, except centuries must also be divisible by 400. You'll combine conditions with && and ||.
I'll show you that year % 4 == 0 && (year % 100 != 0 || year % 400 == 0) captures both rules in one expression. Test with 2000 (leap), 1900 (not leap), 2024 (leap), and 2023 (not leap).
Your program should print true or false for each year.