+ 1
Bhaiyon Write a program to check leap year
3 Respuestas
+ 3
Go to Code Playground section, use the Search bar by entering "leap year" then select C++ from the language filter menu, there's loads of examples for you to learn from.
(Edit)
If you see a copyright © mark on the code, don't forget to put credits for the code author on your modified version of the code.
Hth, cmiiw
+ 2
Just check.
If
year%4==0
year%100==0
year%400==0.
If first 2 return true, leap year
Elif 1 and 3 return true, leap year
Else, not leap year