Question: Write a program in c++ to implement subtraction by addition. Inputs: Two positive integers up to 4 digits. First number must be larger or equal
Write a program in c++ to implement subtraction by addition. Inputs: Two positive integers up to 4 digits. First number must be larger or equal to the second number. (Error checking must be implemented) Implementation: Use instruction given in lab to implement the program. Arrays to hold the digits are recommended but not required for this assignment. Subtraction by addition on each digits and find the result. Output: Print the subtracted (first_input_num - second_input_num) result as an integer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
