[프로그래머스 / Java] 두 수의 합

Dreamer·2023년 12월 8일
0
post-thumbnail

문제

입문 문제7

나의 풀이

class Solution {
    public int solution(int num1, int num2) {
        int answer = -1;
        answer = num1 + num2;
        return answer;
    }
}

생각

이걸 다르게 푸는 방법이 있을까..?

다른 풀이 힌트

boolean으로 풀이..?

profile
Moving forward based on records

0개의 댓글