+ 1
Please someone help me with military time quiz
I've done a code for this military time quiz (12 hour to 24 hour format) but it failed the hidden test cases. If you can find the mistake, please let me know. Thank you https://code.sololearn.com/ck1P0I8c9u7z/?ref=app
3 odpowiedzi
0
Rishi
Tested these sample cases , getting wrong..
Input 12:00 AM => output need is 00:00
Input 12:00 PM => output need is 12:00
1:00 AM => 01:00
All you need is hr is in double digits if it is in single digit..
For input => Expected output
12:00 AM => 00:00
1:00 AM => 01:00
12:00 PM => 12:00
use int main() , not void main()
pls use sesrch.. hope you can find from these.
https://www.sololearn.com/discuss/2803281/?ref=app
+ 1
Jayakrishna🇮🇳 thank you so much. I tried using search but couldn't find this. from next time I'll try more carefully before posting a question
+ 1
Rishi
(Duplicates gets deleted by Mods. Try your question will not be a duplicate )
You're welcome...👍👍