The problem is to check whether the entered year is leap year or not ( a year is leap if it is divisible by 4 and divisible by 100 or 400.
3.Enter: year by user.
4.If ( year%4==0) && (year%100!=0)//(year%400=0):
print the output as leap year else if it is not leap year.
5.output : leap year, not leap year.
Compiling , Debugging and Testing
Enter any year : 2020