+ 1

Is the for loop like while loop in the result

8th Mar 2017, 9:08 AM
ALAMOUDI, WAEL MAKKI S
ALAMOUDI, WAEL MAKKI S - avatar
2 Réponses
+ 13
Depends on the conditions you test... Example for (int i; i <=2; i++) System.out.println (i); results the same as int i = 0; while (i <=2) { System.out.println (i); i++; }
8th Mar 2017, 10:05 AM
Tashi N
Tashi N - avatar
+ 1
Never That's why they both exist
8th Mar 2017, 10:35 AM
Joaquín González
Joaquín González - avatar