코딩테스트/[C#] 프로그래머스
[프로그래머스 | C# | Lv.0] 카운트 업
냠냠쿠
2023. 8. 20. 19:38
728x90
https://school.programmers.co.kr/learn/courses/30/lessons/181920
📝 나의 풀이
using System;
public class Solution {
public int[] solution(int start, int end) {
int[] answer = new int[end-start+1];
int j=0;
for(int i=start; i<=end; i++){
answer[j] = i;
j++;
}
return answer;
}
}
728x90