Computer Science, asked by jahajkhan841, 6 months ago

write a program on swith case with scanner class

Answers

Answered by theankikumar09
1

Answer:

A general syntax of how switch-case is implemented in a 'C' program is as follows: switch( expression ) { case value-1: Block-1; Break; case value-2: Block-2; Break; case value-n: Block-n; Break; default: Block-1; Break; } Statement-x; The expression can be integer expression or a character expression.

Explanation:

Similar questions