Computer Science, asked by adi24032007, 4 months ago

true and False:-
In an 'if-else' block, the 'if' statement is optional.​

Answers

Answered by SabrinaHaque
1

Answer:

False

Explanation:

The if keyword, the parentheses, and a valid test are always required for a well-formed if statement, but the else and the associated statement are optional.

please make my answer brainliest

Answered by aryan304156
2

FALSE

The else part of an if-statement is optional, so if the test evaluates to false, then the if-statement does nothing. Braces are optional in the case of a single statement in the body of the if-statement.

Similar questions