what is a selection statement? name them
Answers
Answered by
0
Answer:
- Selection statements allow a program to test several conditions, and execute instructions based on which condition is true. That is why selection statements are also referred to as conditional statements.
Answered by
0
Hi friend________,
★ The selection statement is a statement in which, the statement is executed, depending upon a condition.
★ If a given condition is true, a true block is executed, (i.e) the set of statement is executed.
★ Otherwise a false block is executed.
★ This statement is also called decision statement or selection statement because it helps in making decision about which set of statements are to be executed.
Types:
★ if statement
★ if-else statement
★ nested if
★ if-else-if ladder
Attachments:
Similar questions