Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - I and j are shaping, how many times does the inner loop perform? for(I = 6; Me; I-)for(j = 0; j & lt5; J+J++) {...} ...} How to calculate?
I and j are shaping, how many times does the inner loop perform? for(I = 6; Me; I-)for(j = 0; j & lt5; J+J++) {...} ...} How to calculate?
for(I = 6; Me; I-)//I starts from 6, and the condition is I. Since the condition is not 0, it is true, so when I is 0, I jump out of the loop and loop out 6 times.

for(j = 0; j & lt5; j++)//j & lt; Condition 5 is true, that is, the inner loop is executed 5 times. Since the outer loop is executed 5 times as 1 time, the inner loop needs to be executed 6 × 5 = 30 times.