Page 1 of 1

JavaScript

Posted: Tue Jul 12, 2022 8:22 am
by answerhappygod
JavaScript
Javascript 1
Javascript 1 (40.56 KiB) Viewed 38 times
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