프로그래머스/Lv.0
[프로그래머스 C#] 카운트 다운
suniverse
2023. 8. 14. 14:49
using System;
public class Solution {
public int[] solution(int start, int end) {
int[] answer = new int[start - end + 1];
for(int i = 0; i < answer.Length; i++)
{
answer[i] = start;
start--;
}
return answer;
}
}