-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
subtraction function #4
base: main
Are you sure you want to change the base?
Conversation
@@ -14,6 +15,9 @@ int main() | |||
//now call add number x times function | |||
addNumberXTimes(3, 10); | |||
|
|||
//now call subtract numbers function | |||
subtractNumbers(9,7); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
void subtractNumbers(int num1, int num2) | ||
{ | ||
cout << num1 << " - " << num2 << " = " << num1-num2 << endl; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, though I'd pollute your function with documentation just because 😎
"path": "." | ||
} | ||
] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is generated by VSCode and should only be local to your machine. I'd suggest adding this file into .gitignore
. So for your next commit, it will ignore this file upon committing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. Fix this then we can merge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
follow jasper's suggestion with the vscode file
added a subtract numbers function