Problem Description

Sum of two numbers

Easy

Write a function sum(a, b) that takes two integers a and b as input and returns their sum.

Example 3:

Input: a = 0 & b = -7

Output: -7

Example 2:

Input: a = -5 & b = 7

Output: 2

Example 1:

Input: a = 5 & b = 7

Output: 12

Constraints

  • => The inputs a and b are integers.

  • => The result will be an integer.

Code

Run the program to see the results