Write a program MinutesSeconds.java
that uses an int
variable to identify a length of time in seconds. Then calculate that time in minutes and seconds and print out the results.
Sample output:
The length of time is 127 seconds.
That is 2 minutes and 7 seconds.
The length of time is 31 seconds.
That is 0 minutes and 31 seconds.
Write a program HoursMinutesSeconds.java
that can also indicate hours.