Convert the following if block to switch blockif(a==2)(3)System.out.println("two");elseif(s==3)System.out.println("three");elseSystem.out.println("it's a number'
Answers
Answered by
1
Answer:
Heya mate✌☺❤
Explanation:
✏int a
{{
Switch(a)
Case 2:System. out.println("Two");
Break;
Case 3:System. out.print ln("it's a number");
Break;
Case default:System. out.print ln("Invalid choice");
}}
✒Hope it helps✌☺❤
perk chocolate✌✌✌
Similar questions