JavaScript

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

JavaScript

Post by answerhappygod »

JavaScript
Javascript 1
Javascript 1 (40.56 KiB) Viewed 37 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply