알고리즘(CF)2017. 6. 7. 21:08

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


1
int add(int param1, int param2) {
2

 

3
}


'알고리즘(CF)' 카테고리의 다른 글

5. shapeArea  (1) 2017.06.07
4. adjacentElementsProduct  (1) 2017.06.07
3. checkPalindrome  (1) 2017.06.07
2. centuryFromYear  (1) 2017.06.07
https://codefights.com  (0) 2017.06.07
Posted by EL2A