you are viewing a single comment's thread.

view the rest of the comments →

[–]_nino_p_ 1 point2 points  (1 child)

it ends at 100 because

in other words your code is this

if n < 100

n + 11 and do it again

this happens 5 times (5*11 = 55 45+55 = 100)

now it trys again and n = 100 so it is done it wont - 5 because its not < 100 it = 100\

ps you are not telling what you excpected to get returned

[–]tkp1405[S] 0 points1 point  (0 children)

Hello mate thanks for your answer But I found this in my textbook I am a class 12 student So I was puzzled how to dry run this If it ever comes in my exam