Computer Science, asked by ansh00023, 2 months ago

when does ELSEIF block get executed ? Explain with an example​

Answers

Answered by jaymishra200311
4

Answer:

The second block is an else block. This block contains the statements which will be executed if the value of the test-expression becomes false. In our program, the value of num is greater than ten hence the test-condition becomes false and else block is executed.

I hope you like this answer

Answered by YashodharPalav5109
11

Answer:

The second block is an else block. This block contains the statements which will be executed if the value of the test-expression becomes false. In our program, the value of num is greater than ten hence the test-condition becomes false and else block is executed.

Similar questions