JavaScript
1. Clock Write a program that prints the hours of the day from a given hour and minutes to 23:59 (inclusive), each on a separate line. Input The input is consists of 2 lines: • First line - hours - integer in range [0...23] Second line minutes - integer in range [0...59] Output • Hours must be printed on the console in "{hour}: {minutes}" format. Example Input 8 Output 08:05
Example Input 8 5 Output 08 05 08 06 *** 23 57 23 58 23 59
JavaScript
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am