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

728x90
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;
    }
}
728x90