Skip to content

Solve: 16-17번 문제해결 #145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Challenge/sehunKim/016.로꾸꺼/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# 문제16 : 로꾸거

문장이 입력되면 거꾸로 출력하는 프로그램을 만들어 봅시다.

```jsx
**입출력**

입력 : 거꾸로
출력 : 로꾸거
```
15 changes: 15 additions & 0 deletions Challenge/sehunKim/016.로꾸꺼/solve.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
# 문제16 : 로꾸거

문장이 입력되면 거꾸로 출력하는 프로그램을 만들어 봅시다.

입력 : 거꾸로
출력 : 로꾸거

const a = prompt('문장입력');
const result = a.split('').reverse().join('');
split() : 문장을 배열로 전환
reverse() : 배열의 순서를 반대로 바꿈
join(): 배열을 다시 문장으로 바꾸어 주는 역할을 한다.

*/
7 changes: 7 additions & 0 deletions Challenge/sehunKim/017.limit/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# 문제17 : 놀이기구 키 제한

유주는 놀이공원 아르바이트 중입니다. 그런데 놀이기구마다 키 제한이 있습니다.
유주가 담당하는 놀이기구는 키가 150cm 이상만 탈 수 있습니다.

입력으로 키가 주어지면
키가 150이 넘으면 YES를 틀리면 NO를 출력하는 프로그램을 작성하세요.
17 changes: 17 additions & 0 deletions Challenge/sehunKim/017.limit/solve.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
# 문제17 : 놀이기구 키 제한

유주는 놀이공원 아르바이트 중입니다. 그런데 놀이기구마다 키 제한이 있습니다.
유주가 담당하는 놀이기구는 키가 150cm 이상만 탈 수 있습니다.

입력으로 키가 주어지면
키가 150이 넘으면 YES를 틀리면 NO를 출력하는 프로그램을 작성하세요.

const height = prompt("키를 입력하세요.");

if (height >= 150){
console.log("YES");
} else {
console.log("NO");
}
*/