0

Enough Function

Can someone please explain to me how it can print 4 on the screen when we put 9 in the function enough()? I need to to understand this. This is the code https://code.sololearn.com/cCBdwRtJ7fr7/?ref=app

1st Feb 2021, 7:44 AM
Mohd Azam Bin Mad Suliman
Mohd Azam Bin Mad Suliman - avatar
1 Odpowiedź
+ 4
1+2=3 3+3=6 6+4=10 Loop breaks and 4 us returned.
1st Feb 2021, 7:46 AM
Abhay
Abhay - avatar