How to use if statements to execute different statements based on a Boolean condition
How to use if expressions to generate different values based on a Boolean condition
How to use while statements to repeat some statements as long as a Boolean condition holds
How to use for statements to repeat some statements for a definite number of times
What is the scope of validity of variables
Conditional Statements (if)
The main usage of Boolean values is in making decisions about how to let the execution of the program proceed. Suppose you want to print a word, but only ...