write a python programm to convert a given integer (in days) to year,month,days assume that all month have 30 days all year have 365 day
#Q2-write a python programm to convert a given integer
#(in days) to year,month,days assume that all month have 30 days
# all year have 365 day
days=int(input("Enter days:"))
year=days//365
day=days%365
month=day//30
day=day%30
print(year,'year')
print(month,'month')
print(day,'days')
Comments
Post a Comment