Lesson 9 Switch Statement
Lesson 9 Switch Statement
Lesson 9 Switch Statement
❖ Switch statements are another way of handling decision making in your program.
❖ The reason when they are used is when you have a bunch of if else if statements and it becomes
difficult to read then you it change your code to use Switch statements.
❖ A switch statement allows a variable to be tested for equality against a list of values.
2. Write a C++ program to assess your weight status during the quarantine period using switch statement.