Computer Science, asked by rbhupendrasingh9732, 1 year ago

Explain if-then-else statement with syntax and example.

Answers

Answered by nitinkumar04
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 karthicksudha23
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