Topics for Today
format: if (boolean expression) statement else statement Note that if you have more than 1 statement in either case, you must add { }. This is called making a compound statement. Statements inside { } are said to form a "block". Also note that you may sometimes have an if without an else.
Loops used in short programs
Click here to return to the IT 108 page