write the syntax of an if else statement in java class 9
Answers
Answered by
4
Answer:
if - else statement is used to execute one set of statements when the condition is true and another set of statements when the condition is false. It has the following syntax: if (condition 1) { Statement a; Statement b; .. } else { Statement c; Statement d; .. }
Explanation:
mark me as brainliest
Similar questions