Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Suppose I has been defined as an integer variable. In the following program segment, the number of cycles of the while loop is _ _ _ _ _.
Suppose I has been defined as an integer variable. In the following program segment, the number of cycles of the while loop is _ _ _ _ _.
This is an infinite loop. Because i=0, i%2==0, so i++, and then i= 1. From then on, i%2= 1 holds forever. Run this way until if(i%2) continues; This is going back to while (me