New course! Every coder should learn Generative AI!
Try a free lesson0
Military time when does this code not work?
1 Answer
+ 4
13:45 PM -> 25:45 wrong
13:45 AM -> 13:45 wrong
4:20 AM -> 4:20 wrong
Btw: Output have to be in this format: XX:XX (check the description)
Why don't you test your code?