CodeSignal-add

Sean·2022년 1월 17일

CodeSignal

목록 보기
1/5

Write a function that returns the sum of two numbers.

Example

For param1 = 1 and param2 = 2, the output should be
solution(param1, param2) = 3.

Input/Output

[execution time limit] 3 seconds (java)

[input] integer param1

Guaranteed constraints:
-1000 ≤ param1 ≤ 1000.

[input] integer param2

Guaranteed constraints:
-1000 ≤ param2 ≤ 1000.

[output] integer

The sum of the two inputs.

int solution(int param1, int param2) {
	int sum = param1 + param2;
    	return sum;
}

0개의 댓글