Answer:
Following are the program in the Python Programming Language.
#set variable for input year by user
y=int(input("Enter year: "))
#set variable and initialize to 0
flag=0
#check condition that year is divisible by 4
if(y%4==0):
#check that the year is divisible by 100
if(y%100==0):
#check that the year is divisible by 400
if(y%400 ==0):
#then initialized flag to 1
flag=1
else:
#otherwise remain 0
flag = 0
else:
flag = 1
else:
flag = 0
#for break line
print()
#check that if flag is equal to 1
if(flag==1):
print("29 days in February")
#otherwise else
else:
print("28 days in February")
Output:
Enter year: 2020
29 days in February
Explanation:
Following are the description of the program: