Lesson 7-8: C++ Conditional Statements Flashcards
1
Q
They are also known as selection statements that are used to make decisions based on a given condition.
A
Conditional Statements
2
Q
What are the 3 types of conditional statement?
A
- If Statement
- If-Else Statement
- Nested If-Else Statement
3
Q
It is the simplest decision-making statement.
A
If Statement
4
Q
It is used for executing a block of code if the condition is true and if the condition is false.
A
If-Else Statement