โ Back to Functions/Methods
Question 277
Function: Subtract Two Numbers
Function: Subtract Two Numbers
Write a functionsubtract(int a, int b)that returnsa - b. Call it with20and13and print the result: 7 Print withprintfand%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.