using System;
public class Solution {
public int[] solution(int[] numbers) {
int[] answer = new int[numbers.Length];
for(int i = 0; i < numbers.Length; i++)
{
answer[i] = numbers[i] * 2;
}
return answer;
}
}
'프로그래머스 > Lv.0' 카테고리의 다른 글
[프로그래머스 C#] 모음 제거 (0) | 2023.08.02 |
---|---|
[프로그래머스 C#] 최댓값 만들기(1) (0) | 2023.08.01 |
[프로그래머스 C#] 옷가게 할인 받기 (0) | 2023.07.27 |
[프로그래머스 C#] 배열 자르기 (0) | 2023.07.27 |
[프로그래머스 C#] 순서쌍의 개수 (0) | 2023.07.26 |