If you have multiple conditions, which statement can be used to test multiple conditions sequentially?

  • do-while loop
  • for loop
  • if-else statement
  • switch statement
The 'if-else' statement in C++ is used when you have multiple conditions to test sequentially. It allows you to define different blocks of code to execute for different conditions, providing a structured way to handle multiple possibilities.
Add your answer
Loading...

Leave a comment

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