1) write a Java program to calculate all the Arithmetic operations i. e (+, -, *, / )
Answers
Answered by
2
CODES :-
public class Abc{
public static void main(int a, int b){
int sum, difference, product, quotient, remainder;
sum=a+b;
difference=a-b;
product=a*b;
quotient=a/b;
remainder=a%b;
System.out.println("Sum : "+sum);
System.out.println("Difference : "+difference);
System.out.println("Product : "+product);
System.out.println("Quotient : "+quotient);
System.out.println("Remainder : "+remainder);
}
}
.
.
.
.
.
PLEASE MARK ME AS BRAINLIEST AND FOLLOW ME TOO.
Similar questions