Question
You are required to declare FOUR (4) integer variables of number_one, number_two, total_add and total_subtract. You are required to store 2637 into number_one, 437 into
You are required to declare FOUR (4) integer variables of number_one, number_two, total_add and total_subtract. You are required to store 2637 into number_one, 437 into number_two. You are required to calculate the total of adding and subtracting number_one and number_two. Then, store the answer for addition into total_add and the answer for subtraction into total_subtract respectively. For the output on the screen, you are required to produce as below: Number one: 2637
Number two: 437
Total of adding number one and number two: 3074
Total of subtracting number one and number two: 2200
Write down the Java codes for the above program.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started