Computer Science, asked by Sambhawna154, 9 months ago

Rewrite the following set of if else statements in terms of switch case statement:
If(code =='A')
System.out.println(Accountant);
else
if(code=='C'||code=='G')
System.out.println(Grade4);
else
if (code=='F')
System.out.println("Advisor");

Answers

Answered by shoponbabu09
1

Answer:

advisor

Explanation:

  • lfA ACG4F

lfC

g4

ifF

Similar questions