프로그래머스LV1 - 없는 숫자 더하기

Kong-al·2022년 10월 13일
0

프로그래머스LV1 - 없는 숫자 더하기

[ 답안 ]

class Solution {
    public int solution(int[] numbers) {
        int answer = 45;
        for(int i = 0 ; i < numbers.length;i++){
            answer -= numbers[i];
        }
        return answer;    
    }
}
profile
웹개발 공부중!(❁´◡`❁)

0개의 댓글