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
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!