Keep change the input value you get different results, why?? How?? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

Keep change the input value you get different results, why?? How??

https://code.sololearn.com/cFx3UP5rsjK8/?ref=app

10th Dec 2022, 6:21 PM
Bezu Tadesse
Bezu Tadesse - avatar
1 Réponse
+ 1
Hi, Bezu Tadesse ! That's because for two positive integers a and b, (a % b) == a for all b > a.
10th Dec 2022, 9:03 PM
Per Bratthammar
Per Bratthammar - avatar