Question: Write a Java program that create two variables of type integer and initially assign their values to 125, 24 and then print the result of
- Write a Java program that create two variables of type integer and initially assign their values to 125, 24 and then print the result of the following arithmetic operations in separate lines:
- Addition
- Subtraction
- Multiplication
- Division
- Reminder
Finally, ask the user to enter two numbers and then print the result of the above arithmetic operations of those numbers in separate lines too.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
