Computer Science, asked by Sukanyayayayayayayay, 1 year ago

Define switch-case and break statement.


SPAMMERS STAY AWAY

Answers

Answered by anchal2002
3
The switch case statement is used when we have multiple options and we need to perform a different task for each options.


break statement
It is used to come out of the loop instantly. When a break statement is encountered inside a loop, the control directly comes out of loop and the loop gets terminated. It is used with if statement, whenever used inside loop.

I hope it is helpful for you




anchal2002: Plz mark me Brainliest
Similar questions