Computer Science, asked by kumarimehak767, 7 hours ago

write a program to find the number of years, number of months and number of remaining days in 3000 number of days​

Answers

Answered by krito15
0

Answer:

#write a program to find the number of years, number of months and number of remaining days in 3000 number of days

tot_days = 3000 #total days

months = 3000/30 #30 days approx in 1 month

years = 3000/365 #365 days in 1 year

days = tot_days - 0 #remaining days is 3000 as it is the same as total number of days

print ("the number of months remaining : ", months, "the number of years : ", years, "the number of days : ", days)

Similar questions