Write Program Prompts User Enter Minutes Eg 1 Billion Displays Number Years Days Minutes S Q37052781

Write a program that prompts the user to enter the minutes (e.g., 1billion), and displays the number of years and days for theminutes. For simplicity, assume a year has 365 days. Here is asample run: Enter the number of minutes: 1000000000 1000000000minutes is approximately 1902 years and 214 days IN PYTHON


Solution


n = int(input(“Enter the number of minutes: “))years = n // (24 * 60 * 365)days = (n % (24 * 60 * 365)) // (24 * 60)print(“{} minutes is approximately {} years and {} days”.format(n, years, days))

Enter the number of minutes: なxí.x:»: i:lx: rxx30mlx:»: <>:; : rm,.xxxxī:::::: 1000000000 1000000000 minutes is approximately

color{blue}Please;let;me;know;if;you;have;any;doubts Please;upvote;this;answer.;;Thanks!!

Enter

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.