24-hour time (also known in the U.S. as military time) is widely
used around the world. Time is expressed as hours since midnight.
The day starts at 00:00, and ends at 23:59. Write a program that
converts am/pm time to 24-hour time. The input is two numbers and a
string. If the input is 2 30 pm, the output should be 14:30. If the
input is 12 01 am, the output should be 00:01. In C++
24-hour time (also known in the U.S. as military time) is widely used around the world. Time is expressed as hours since
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
24-hour time (also known in the U.S. as military time) is widely used around the world. Time is expressed as hours since
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!