Question: please write the program in two-spirit classes one a main and the other an app Write a Java program that creates two variables of type
please write the program in two-spirit classes one a main and the other an app
- Write a Java program that creates 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
To accomplish this task in Java we need to create two classes a main class and an application class where the operations will be defined and executed ... View full answer
Get step-by-step solutions from verified subject matter experts
