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
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