Answers for "check the year is leap year or not"

6

Check if a year is a leap year

if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0))
cout<<year<<" is a leap year";
else
cout<<year<<" is not a leap year";
Posted by: Guest on August-21-2021

Code answers related to "check the year is leap year or not"

Code answers related to "Javascript"

Browse Popular Code Answers by Language