0

military time problem

I wrote this code to solve military time probleme , which is converting from 12 hours to 24 hours time but my code cannot pass the test cases and I don't know the problem, help needed. https://code.sololearn.com/cFQOME1NNwSB/?ref=app

10th Dec 2020, 2:45 AM
Abderrahim Rhitrif
Abderrahim Rhitrif - avatar
1 Antwort
+ 1
The problem is did not consider minutes with 1 digit hour. Example 7:30 AM //Your output 07:00 same with PM Good Luck fixing it!
10th Dec 2020, 4:07 AM
noteve
noteve - avatar