Skip to content

Commit

Permalink
짝수는 싫어요
Browse files Browse the repository at this point in the history
  • Loading branch information
dudwns committed Mar 24, 2023
1 parent 9eab895 commit abc1c0c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Programmers/exam31.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
function solution(n) {
const answer = [];
for (let i = 1; i <= n; i += 2) {
answer.push(i);
}
return answer;
}

0 comments on commit abc1c0c

Please sign in to comment.