Next: Multiple Choice Questions
Up: The if statement
Previous: Examples of if statements
if
statement is used to execute a statement only if a
condition is true.if
condition is
true can contain any other C++ statement, including
other if
statements.