Subtraction Equation
mediumQuestion 9Create two integer variables with the values 15 and 8. Use one cout statement to show a subtraction equation (see Expected Output).
Calculate the result by subtracting the second variable from the first, then use cout with << operators to display all three numbers in the equation format shown above.
Expected output
15 - 8 = 7= newline. No newline after the last line.
Hints4 available
Sign in to use hintsTopics
Printing
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (cout, fori)
Your output
Run your code to see the output here...
Test cases
Run your code to see test case results.