Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

The if Statement [8/16]

This example contains an error. The given syntax cannot be used to check if x is between 4 and 7.

Correct this example by using the and operator to join two conditions, as in the previous example.

Run the program to verify that it works correctly.

Loading...