Question about while loop statements. | SoloLearn: Learn to code for FREE!

0

Question about while loop statements.

for(int x = 1; x <=5; x++) { System.out.println(x); } /* Outputs 1 2 3 4 5 */ x <=5; x is lesser than =5? I dont get it. =5?

2/21/2017 5:54:24 PM

Opaque Dmr

1 Answer

New Answer

+4

x less or equals to 5