관리 메뉴

CHIqueen

[Intro] add 본문

프로그래밍/CodeSignal

[Intro] add

CHIqueen 2020. 2. 26. 21:27

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.

int add(int param1, int param2) {
    return param1+param2;
}

 

'프로그래밍 > CodeSignal' 카테고리의 다른 글

[Intro] shapeArea  (0) 2020.03.03
[Intro] Make Array Consecutive 2  (0) 2020.03.03
[Intro] adjacentElementsProduct  (0) 2020.03.03
[Intro] checkPalindrome  (0) 2020.02.26
[Intro] centuryFromYear  (0) 2020.02.26
Comments