Computer Science, asked by royaditya45, 14 hours ago

1. what is the use of break and continue keywords.

2. how is do - while loop different from while loop ?

3. what happens if we do not use break in switch - case ? give an example.​

Answers

Answered by atulrana14200
0

Answer:

  1. The break statement is used to terminate the loop immediately.
  2. The do while loop executes the content of the loop once before checking the condition of the while.
  3. Switch case statements are used to execute only specific case statements based on the switch expression. If we do not use break statement at the end of each case, program will execute all consecutive case statements until it finds next break statement or till the end of switch case block.

Pls mark me as a brainliest answer pls

Similar questions