All lessons

Loops

8 min · Java

Repeat work without writing it out a hundred times.

Java · Loops0/5 cleared

Enemy 1 of 5

A for loop has a start, a condition, and a step. This counts i from 0 while i is less than 3.

You
Pincer Crab

Loading editor...

Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: 0 1 2