Home > Back-end >  C language circulation break
C language circulation break

Time:06-08

The middle rewind break problem, the answer is 52, beg,

CodePudding user response:

I=1, s=1, I=2, s=4, the following eight cycle is t=6, so 4 + 6 by 8=52, isn't it

CodePudding user response:

1 + 3 + 6 x 8=52

CodePudding user response:

Don't quite understand,,,,

CodePudding user response:

J=1, t=2
J=2, t=3
J=3, t=6
Why t=6 to read
Break not when judging conditions meet, judge conditions don't output

CodePudding user response:

reference qq_45798109 reply: 3/f
yes...
look at the fifth floor??

CodePudding user response:

reference 5 floor github_37414436 reply:
j=1, t=2
J=2, t=3
J=3, t=6
Why t=6 to read
Break not when judging conditions meet, the judgment condition does not output

T=6 out of the inner loop, at that time it s=s + t; This way, so 6 will be cumulative

CodePudding user response:


I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related