Python/BAEKJOON
10995 별 찍기 - 20
JH_
2022. 6. 16. 17:47
📖 question
https://www.acmicpc.net/problem/10995
10995번: 별 찍기 - 20
예제를 보고 규칙을 유추한 뒤에 별을 찍어 보세요.
www.acmicpc.net
✍️ answer
n = int(input())
for i in range(1, n+1):
if i % 2 == 0:
print(" *"*n)
else:
print("* "*n)