write any program of if and if else with output?
Answers
Answered by
1
Answer:
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. Thus, our output will be from an else block which is "The value is greater than 10
Similar questions