Conditions

if condition

else branch

Conditions with logical operators

Boolean algebra

Nested conditions

switch condition


Exercises

  1. Write a logic of 3 branches with keywords if, else if, else.
  2. Write a menu logic of your favorite restaurant with switch-case.
Sample solutions