Problem Analysis:
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.
Algorithms :
1.start
2.Define :year:
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.
6.End.
Codes:
outputs:
Compiling , Debugging and Testing
Enter any year : 2020
leap year.