Question: DoMath - Put all the code in the main method The program will loop 4 times and, in each iteration, it will prompt the user
DoMath Put all the code in the main method
The program will loop times and, in each iteration, it will prompt the user for integers with the prompts of "Enter num: and "Enter num: You can assume that the user will provide an integer for each prompt. In the first iteration, add the input, in the second, subtract them num num in the third iteration, multiply them, and in the final iteration divide numnum The output will be the four answers separated by a comma followed by a space. If num is zero when you do the division, the answer should be Error.
Sample run with user input in bold
Enter num:
Enter num:
Enter num:
Enter num:
Enter num:
Enter num:
Enter num:
Enter num:
Error
Note: If the last input was instead of you would have a instead of Error in the output
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
