+ 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
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
+ 2
Francesco Famosi
Also 12:30 PM in the afternoon returns 24:30
So you have a number of issues to think about
+ 1
thank you both