Solve Me First

Solve Me First

Complete the function solveMeFirst to compute the sum of two integers.


Function prototype:

int solveMeFirst(int a, int b);

where,

  • a is the first integer input.
  • b is the second integer input

Return values

  • sum of the above two integers

Sample Input

1
2
a = 2
b = 3

Sample Output

1
5

Explanation

The sum of the two integers a and b is computed as: 2 + 3 = 5.



Solution

1
2
3
4
function solveMeFirst(a, b) {
// Hint: Type return a+b below
return a + b;
}

Comments

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×