The ______ statement is used to specify a block of code to be executed if the condition is false.

  • if-else
  • else-if
  • if
  • switch
The "else" statement is used to specify a block of code to be executed if the condition specified in the preceding "if" statement is false. It allows for conditional execution, and if the "if" condition is not met, the code inside "else" will be executed.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *