Question: If the value of the integer variable a is 2, square it; if it is 3, input a new value for a ; and if
If the value of the integer variable a is 2, square it; if it is 3, input a new value for a; and if it is 4 or 5, multiply a by 3. Output the new value for a in any case. Consider using a switch statement for this multiple decision
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
