Write a program to assign two variable with integer value and perform all mathematical operations.
Answers
Answered by
2
Answer:
class prog {
public static void main( int n1 , int n2 ){
int addition=n1+n2;
int subtraction= n1-n2;
int multiplication= n1*n2;
int division= n1/ n2;
System.out.println( "Addition = " + addition );
System.out.println("Subtraction= " + subtraction);
System.out.println("multiplication= " + multiplication);
System.out.println("Division = " + division);
}
}
Similar questions