Enough Function | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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
Azam Sulaiman
Azam Sulaiman - avatar
1 Answer
+ 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