[프로그래머스 | Lv.0] n 번째 원소까지

이승민·2023년 8월 7일
0

프로그래머스

목록 보기
24/27

https://school.programmers.co.kr/learn/courses/30/lessons/181889

📝 나의 풀이

using System;

public class Solution {
    public int[] solution(int[] num_list, int n) {
        int[] answer = new int[n];
        
        for(int i=0; i<n; i++){
            answer[i] = num_list[i];
        }
        return answer;
    }
}

0개의 댓글

관련 채용 정보