CJCoding With Joseph
15per day

Subtraction Equation

Create two integer variables with the values 15 and 8. Use one cout statement to show a subtraction equation:

15 - 8 = 7

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
Topics:
Printing
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท 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.