Sum

This function calculates the sum of two numbers x and y.

Parameters

  • x (int): The first number to be added.
  • y (int): The second number to be added.

Returns

  • The sum of x and y as an integer.

Examples

sum(3, 4)

Output: 7

sum(6, 8)

Output: 14

sum(2, -4)

Output: -2