+ 6

Time......second is behaving wierd!

See the output....see the seconds for sometime, it behaving weird...first 01, 02, 03...,09 then 10, 20, 30, 40....,10, then again 01......why so!? https://code.sololearn.com/W3ydsplgP5ss/?ref=app

15th Oct 2021, 6:43 AM
Parth
Parth - avatar
1 Answer
+ 5
Line 19: Change to below code: number = "0" + number; number+="0" work like number=number+"0"
15th Oct 2021, 7:16 AM
Vadivelan