Computer Science, asked by soniabhattacharya64, 15 days ago

write a Java script in blue j pls help me​

Answers

Answered by nakshatrabhattachary
0

Answer:

WAP to make a calculator using switch case.

class calculator

{

public static void main(int a,int m,int n)

{

System.out.println("Make a calculator ");

switch(a)

{

case 1:

System.out.println(m+n);

break;

case 2:

System.out.println(m-n);

break;

case 3:

System.out.println(m*n);

break;

case 4:

System.out.println(m/n);

break;

default:

System.out.println("Sorry");

}

}

}

Similar questions