Computer Science, asked by lavisharma123456, 4 months ago

Write A program to define a method void process ( int m, int n), which calculates and prints the addition, subtraction, multiplication and division of the parameters m and n​

Answers

Answered by anindyaadhikari13
5

Answer:-

This is the required program.

class x

{

void process(int m, int n)

{

System.out.println("Sum: "+(a+b));

System.out.println("Difference: "+(a-b));

System.out.println("Product: "+a*b);

System.out.println("Quotient: "+a/b);

}

}

Similar questions