본문 바로가기
(문제풀이)

프로그래머스(java) : 나이 출력

by cogito-new 2022. 10. 9.

 

class Solution {
    public int solution(int age) {
        int answer = 0;
        
        answer = 2022 - age + 1;
        
        return answer;
    }
}

 

 

반응형