Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

The if Statement [1/16]

The if Statement

The if statement executes the following statement block only if the given condition is true. The if statement in the given program uses a condition x>5.

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