Computer Science, asked by sangeetasharma210119, 1 month ago

2. Write the syntax for the IF THEN...ELSE statement.​

Answers

Answered by yaashitha4108
3

Answer:

When executing a block If (second syntax), condition is tested. If condition is True, the statements following Then are executed. If condition is False, each ElseIf (if any) is evaluated in turn. ... After executing the statements following Then or Else, execution continues with the statement following End If.

Answered by priyaayika
2

Explanation:

The if / then statement is a conditional statement that executes its sub-statement, which follows the then keyword, only if the provided condition evaluates to true: if x < 10 then x := x+1; In the above example, the condition is x < 10 , and the statement to execute is x := x+1 .

Similar questions