Learn Programming - ZedLX

A Free Computer Programming Tutorial for Beginners

The if Statement [1/12]

The if Statement

The if statement executes the following statement block only if the given condition is true.

After you run the program, click on the "Restart" button several times to observe the behavior of the program.