Page 1 of 1

How many iterations will the following for loop generate? for (int i = 0; i < 10; i++) { System.out.println( "i is " + i

Posted: Sat Feb 19, 2022 3:20 pm
by answerhappygod
How Many Iterations Will The Following For Loop Generate For Int I 0 I 10 I System Out Println I Is I 1
How Many Iterations Will The Following For Loop Generate For Int I 0 I 10 I System Out Println I Is I 1 (36.32 KiB) Viewed 43 times
How many iterations will the following for loop generate? for (int i = 0; i < 10; i++) { System.out.println( "i is " + i); ) = i--; } 10 Infinite number of times. 9 0 (zero)