CJCoding With Joseph
15free / daySign inCreate account

Subtraction Equation

Create 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
Topics:
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.