Q2- Define the Conditional statement IF-THEN-ELSE.
Answers
Answered by
0
Answer:
What is conditional statement if-then statement?
A conditional statement (also called an If-Then Statement) is a statement with a hypothesis followed by a conclusion. Another way to define a conditional statement is to say, “If this happens, then that will happen.” The hypothesis is the first, or “if,” part of a conditional statement.
Explanation:
What is the use of IF THEN ELSE statement?
The if-then-else statement provides a secondary path of execution when an "if" clause evaluates to false . You could use an if-then-else statement in the applyBrakes method to take some action if the brakes are applied when the bicycle is not in motion.
Similar questions