알고리즘/codefights

1>add

Diademata 2017. 6. 28. 17:06
반응형

Write a function that returns the sum of two numbers.


Example


For param1 = 1 and param2 = 2, the output should be

add(param1, param2) = 3.


code >>


int add(int param1, int param2) {


    return param1 + param2;

}

반응형

'알고리즘 > codefights' 카테고리의 다른 글

6>makeArrayConsecutive2  (0) 2017.06.28
5>shapeArea  (0) 2017.06.28
4>adjacentElementsProduct  (0) 2017.06.28
3>checkPalindrome  (0) 2017.06.28
2>centuryFromYear  (0) 2017.06.28