Example
See the below example in which we check a leap year by taking input from user:
Output
See the below outputs for different input values:
Test 1:
Enter a year: 2004 2004 is a leap year
Example
See the below example in which we check a leap year by taking input from user:
Output
See the below outputs for different input values:
Test 1:
Enter a year: 2004 2004 is a leap year