CJCoding With Joseph

Function: Subtract Two Numbers

Write a function subtract(int a, int b) that returns a - b. Call it with 20 and 13 and print the result:

7

Print with printf and %d.

Expected Output:

7
Topics:
Functions/Methods
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (p, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.