Skip to content
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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

subtraction function #4

wants to merge 10 commits into from

Conversation

bridget127
Copy link
Collaborator

added a subtract numbers function

@bridget127 bridget127 changed the title Bridget subtraction function Oct 12, 2022
@@ -14,6 +15,9 @@ int main()
//now call add number x times function
addNumberXTimes(3, 10);

//now call subtract numbers function
subtractNumbers(9,7);

Copy link
Collaborator

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;
}
Copy link
Collaborator

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": "."
}
]
}
Copy link
Collaborator

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.

Copy link
Owner

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

Copy link
Owner

@max9001 max9001 left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants