when does ELSEIF block get executed ? Explain with an example
Answers
Answered by
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
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
Hindi,
4 months ago
Biology,
4 months ago
English,
7 months ago
Math,
7 months ago
Computer Science,
1 year ago