Computer Science, asked by ALIAKBAR07, 1 year ago

friend can u solve this JAVA program

Attachments:

Answers

Answered by amanpeekay0
1

Hey Mate!

Here's your answer :-


switch(op)

{

case "+" :  Z = m + n ;

case "-" : Z = m - n ;

case "*" : Z = m * n ;

default : System.out.println("Oops! Wrong ") ;

}


Hope it helps.


ALIAKBAR07: thanks friend....hope it is right
amanpeekay0: Anytime☺️
Similar questions