can't solve the problem military time | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

can't solve the problem military time

I wrote some code that seems to me to be right, I can't figure out where I'm wrong https://code.sololearn.com/c8Sd96mW7jZO/?ref=app

28th Oct 2021, 8:33 AM
Francesco Famosi
Francesco Famosi - avatar
3 Answers
+ 3
You need to output 2 digits in the hour section. Even there is only 1. Input like 9:19 AM should output 09:19
28th Oct 2021, 9:18 AM
你知道規則,我也是
你知道規則,我也是 - avatar
+ 2
Francesco Famosi Also 12:30 PM in the afternoon returns 24:30 So you have a number of issues to think about
28th Oct 2021, 9:43 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
thank you both
28th Oct 2021, 7:14 PM
Francesco Famosi
Francesco Famosi - avatar