Network disconnected
Description
주어진 solution 함수는 정수 n
을 매개 변수로 받아 첫째 줄에는 별 1개, 둘째 줄에는 별 2개, . . . n
번째 줄에는 별 n
개를 출력하는 함수입니다. 올바르게 작동하도록 한 줄을 수정해 보세요.
제한사항
- 1 ≤
n
≤ 100
입출력 예
입력 #1
5
출력 #1
*
**
***
****
*****
입출력 예 설명
입출력 예 #1
n
이 5이므로 첫째 줄에 별 1개, 둘째 줄에 2개, 셋째 줄에 3개, 넷째 줄에 4개, 다섯째 줄에 5개를 출력합니다.
Question type: Debugging
- In the Debug type question, you have to find and fix the bug in given code
- You can change only one line of the given code
- An error message will be shown in the Result area when you modify more than 2 lines of the given code.
Result
Stop
Result of [Run Test] or [Submit] will be displayed here