Ctrl K

Total of Two Numbers

Easy
You are given two integers x and y. Return their sum. This is a warm-up problem: a handy way to get to know the editor and the test runner.
Example 1
x=23, y=19 → 42

23 + 19 = 42.

Example 2
x=-7, y=3 → -4

−7 + 3 = −4: the sum can be negative.

Constraints
  • −100 ≤ x, y ≤ 100
Have you seen this problem in a real interview?
Solved by0
Tried by0
Submissions0
Acceptance—
Topics
Similar problemsA Number That Reads Both Ways EasyValue of a Roman Numeral EasyAdd One to a Digit Array EasySum of Binary Strings EasyWhole Square Root Easy
loading Python…
Input
x=23, y=19
Expected
42

Run checks the first 3 tests in your browser. Submit checks all 61 tests on the server, hidden ones included.