Explain if-then-else statement with syntax and example.
Answers
Answered by
20
If condition is True, the statements following Then are executed. If condition is False, each ElseIf (if any) is evaluated in turn. When a True condition is found, the statements following the associated Then are executed. ... Block If statements can be nested; that is, contained within one another.......
mark me to brainlist
Answered by
1
Answer:
If condition is True, the statements following Then are executed. If condition is False, each Else If (if any) is evaluated in turn. When a True condition is found, the statements following the associated Then are executed. Block If statements can be nested; that is, contained within one another.
example
if (condition) then
statement 1
else
statement 2
Explanation:
Similar questions
English,
7 months ago
Biology,
7 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago
India Languages,
1 year ago