class Solution {
public int solution(int num1, int num2) {
int answer = num1+num2;
return answer;
}
}
- 풀이
- num1과 num2를 더하여 그 합을 answer 변수에 저장
- 저장된 합을 반환
class Solution {
public int solution(int num1, int num2) {
int answer = num1+num2;
return answer;
}
}