Computer Science, asked by Kewld, 17 hours ago

WRITE IN C++: in switch case which requires the user to enter character that determines that it is a CUBE OR SQUARE. Whenever the user enters ‘C’ = cube and ‘S’ = square.


EXAMPLE: User entered S and 4
Answer:
The square of 4 is 16.

Answers

Answered by Copythat42
0

Answer:

in switch case which requires the user to enter character that determines that it is a CUBE OR SQUARE. Whenever the user enters ‘C’ = cube and ‘S’ = square.

Explanation:

EXAMPLE: User entered S and 4

Answer:

The square of 4 is 16.

please mark as brianlist

Answered by XxIISwapingQueenIIxX
0

\huge\mathbb\fcolorbox{purple}{lavenderblush}{✰Answer}

switch (variable or an integer expression)

{

case constant:

//C Statements

;

case constant:

//C Statements

;

default:

//C Statements

;

}

Similar questions