Skip to content

Commit 2f1c3bc

Browse files
authored
Merge pull request jsk3342#208 from jsk3342/jisu
Solve: 036 문제 해결
2 parents c6d2683 + e668a55 commit 2f1c3bc

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# 문제36 : 구구단 출력하기
2+
3+
1~9까지의 숫자 중 하나를 입력하면 그 단의 구구단 결과를 한 줄에 출력하는 프로그램을 작성하세요.
4+
5+
```jsx
6+
**입출력**
7+
8+
입력 : 2
9+
출력 : 2 4 6 8 10 12 14 16 18
10+
```
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
# 문제36 : 구구단 출력하기
3+
4+
1~9까지의 숫자 중 하나를 입력하면 그 단의 구구단 결과를 한 줄에 출력하는 프로그램을 작성하세요.
5+
6+
```jsx
7+
**입출력**
8+
9+
입력 : 2
10+
출력 : 2 4 6 8 10 12 14 16 18
11+
```
12+
*/
13+
14+
function 구구단(숫자) {
15+
for(let i = 1; i < 10; i++) {
16+
console.log(숫자 * i)
17+
}
18+
}
19+
20+
구구단(2)

0 commit comments

Comments
 (0)