wes d2a2ba9e15 first commit | 4 年 前 | |
---|---|---|
.. | ||
README.md | 4 年 前 | |
code.cpp | 4 年 前 | |
unitTest.cpp | 4 年 前 |
by username tags: math, numbers
Create a function that takes a number as an argument, add one to the number, and return the result. Examples addition(0) ➞ 1 addition(9) ➞ 10 addition(-3) ➞ -2 Notes Do not test for overflow. Don't forget to return the result. If you get stuck on a challenge, find help in the Resources tab. If you're really stuck, unlock solutions in the Solutions tab.
Create a function that takes a number as an argument, add one to the number, and return the result.
addition(0) ➞ 1
addition(9) ➞ 10
addition(-3) ➞ -2
return
the result.