posted 23 years ago
first ......i=0 j=0 k=0, counter =1
second ........... k=1, break middle and enter outer
third ...... i=1 j=0 k=0 counter =2
fourth ........... k=1 break middle and enter outer
fifth i=2 j=0 k=0 counter =3
......... k=1 break middle and enter outer
and it stops as i cannot be incremented further.
hope this helps....
Options :
1)2
2)3
3)6
4)7
5)9
I tried running the code and got the output as 3.
Can any one make me understand the flow of the code?
Sonir[/qb]<hr></blockquote>
[ January 23, 2002: Message edited by: mark stone ]