Home > Back-end >  Ask bosses help me answer choice fills up the topic, I don't understand too
Ask bosses help me answer choice fills up the topic, I don't understand too

Time:09-22

CodePudding user response:

It is better for the problem solving steps and train of thought

CodePudding user response:

The first run 4 times

CodePudding user response:

The first four times, the second change 4 times without y
First you need to know the loop body circulation after the + + is performed x + 1; The loop body perform play here is even if the loop body is the continue is
Know + + normal to see, after the first comparison condition x<20, implement the loop body, execution times add loop body x + 1=2; Is equal to x=x + 2; Change the value of x, performed x++
X + 3 equal to perform a circulation, and x=19 after three times, meet the conditions, into the circulation, out does not meet again, no longer in the loop, so is 3 + 14 words
The second question, the judgment condition, there are two & amp; & Is and, that is, there is a don't meet is not, so is the least of the two conditions, with short board effect, and then look back is x++, only to x, plus one at a time, so after a few is equivalent to x is not meet x<4 conditions, x=0 (+ +), x=1 (+ +), x=2 (+ +), x=3 (+ +), 4 does not meet into the circulation

CodePudding user response:

C, D, C, A, B, D, B, C, 4, 1
you are welcome
  • Related