This page was published over 7 years ago.
Please be aware that due to the passage of time, the information provided on this page may be out of date or otherwise inaccurate,
and any views or opinions expressed may no longer be relevant. Some technical elements such as audio-visual and
interactive media may no longer work. For more detail, see how we deal with older content.
Image 'enter temperature. If the temperature is less than or equal to zero, output: It is freezing. Less than 15, output: It is cold. Less than 25, output It is a nice day. Greater than or equal to 25, output: It is hot!' - under Creative-Commons license
Image 'How nested if statements work. Execute statements before the first if statement. If condition 1 is true, execute condition 1. If condition 1 is false, move onto condition 2 and so on until one of the conditions is true. Execute the statement associated with the condition found to be true. If none of them are true, execute the final statement. Once this is done, move onto statements after the if statement.' - under Creative-Commons license
Image 'Your First Program' - Copyright: Dreamstime
Image 'Variables and Data Types' - Copyright: Dreamstime
Image 'Operators' - Copyright: Dreamstime
Image 'Getting Data From a User and Displaying Results' - Copyright: Dreamstime
Image 'Booleans and the Comparison Operators' - Copyright: Dreamstime