Question: Write a program that prompts the user to enter the seconds ( e . g . , 1 billion ) , and displays the number

Write a program that prompts the user to enter the seconds (e.g.,1 billion), and displays the number of years, days, hours, minutes, and seconds. For simplicity, assume a year has 365 days.
Here is a sample run:
Enter number of seconds (e.g.,1 billion)1987000000
In 1987000000 there are:
63 years
2 days
16 hours
26 minutes
40 seconds
 Write a program that prompts the user to enter the seconds

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!