Boolean Expressions

Get a brief introduction to the boolean expression, a basic programming element.

Introduction

An algorithm can be divided into three building blocks:

  • Sequencing
  • Selection
  • Iteration

This unit focuses on selection, which is performed using conditional statements. Conditional statements give the program the ability to decide and respond appropriately. Boolean variables, relation operators, and logical operators are all involved in building a ...