보기보기 개발 블로그

프로그래머스(JAVA) / 나이 출력 본문

프로그래머스

프로그래머스(JAVA) / 나이 출력

bokboks 2023. 3. 18. 00:16


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