Write a Java program to print the sum, multiply, subtract, divide and remainder of two numbers
belongs to collection: Java programming language Basic programs with examples
All Answers
total answers (1)
belongs to collection: Java programming language Basic programs with examples
total answers (1)
In this demo I have used NetBeans IDE 8.2 for debugging purpose. But you can use any java programming language compiler as per your availability..
Result:
Input 1st number: 50
Input 2nd number: 4
Addition of two numbers: 50 + 4 = 54
subtraction of two numbers: 50 - 4 = 46
Multiplication of two numbers: 50 x 4 = 200
Division of two numbers: 50 / 4 = 12
Remainder of two numbers: 50 mod 4 = 2
need an explanation for this answer? contact us directly to get an explanation for this answer