0

Why the output is different for both codes? Why it is showing Number of digits like 327? I couldn't understand , Help me !!

https://code.sololearn.com/WFwTsJx2b6s6/?ref=app https://code.sololearn.com/WCfUfYSxI1Oe/?ref=app

22nd Jan 2020, 8:32 AM
Argon
2 Answers
+ 3
In the invalid code it shows weird results because the number is treated as float and "never" reaches 0.
22nd Jan 2020, 9:04 AM
Seb TheS
Seb TheS - avatar
0
Oh, i got it ! Thanks for the explanation.
22nd Jan 2020, 10:10 AM
Argon