JuniorMath

Add Two Integers

Given two integers num1 and num2, return the sum of the two integers.

Example 1
Inputnum1 = 12, num2 = 5
Output17
num1 is 12, num2 is 5, and their sum is 12 + 5 = 17, so 17 is returned.
Example 2
Inputnum1 = -10, num2 = 4
Output-6
num1 + num2 = -6, so -6 is returned.

Constraints

  • -100 <= num1, num2 <= 100

Asked at 9 companies

</>

Your Solution

(Ctrl/Cmd + Enter)

Switching Language

Loading template...

Loading...

Sign in to save your progress

AI code evaluation

Get a correctness verdict, missed edge cases, and complexity analysis of your solution.

Sign in to evaluate