[BOJ 10996] 별 찍기 - 21

View as PDF

Submit solution

Points: 1
Time limit: 1.0s
Memory limit: 256M

Problem type
Allowed languages
Assembly, Awk, C, C++, Java, Pascal, Perl, Python, Sed, Text

예제를 보고 규칙을 유추한 뒤에 별을 찍어 보세요.

입력 형식

첫째 줄에 N(1 ≤ N ≤ 100)이 주어진다.

출력 형식

첫째 줄부터 차례대로 별을 출력한다.

예제 입력 1

1

예제 출력 1

*

예제 입력 2

2

예제 출력 2

*
 *
*
 *

예제 입력 3

3

예제 출력 3

* *
 *
* *
 *
* *
 *

예제 입력 4

4

예제 출력 4

* *
 * *
* *
 * *
* *
 * *
* *
 * *

Comments

There are no comments at the moment.