We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given two integers num1 and num2, return the sum of the two integers.
num1
num2
sum
Input: num1 = 12, num2 = 5 Output: 17 Explanation: num1 is 12, num2 is 5, and their sum is 12 + 5 = 17, so 17 is returned
num1 = 12, num2 = 5
17
Input: num1 = -10, num2 = 4 Output: -6 Explanation: num1 + num2 = -6, so -6 is returned.
num1 = -10, num2 = 4
-6
-100 <= num1, num2 <= 100
The text was updated successfully, but these errors were encountered:
aoyeoku
Successfully merging a pull request may close this issue.
Add Two Integers Challenge
Challenge Description
Given two integers
num1
andnum2
, return thesum
of the two integers.Examples
Input:
num1 = 12, num2 = 5
Output:
17
Explanation: num1 is 12, num2 is 5, and their sum is 12 + 5 = 17, so 17 is returned
Input:
num1 = -10, num2 = 4
Output:
-6
Explanation: num1 + num2 = -6, so -6 is returned.
Constraints
-100 <= num1, num2 <= 100
Helpful Resources
The text was updated successfully, but these errors were encountered: