본문 바로가기

Python_Intermediate/Algorithmus

Python - 계단식 * 출력 알고리즘

반응형

Q>

계단식 * 출력 알고리즘


A>

for i in range(5):
for j in range(5):
if j <= i:
print('*', end = '')
print()


O>

*

**

***

****

*****


Process finished with exit code 0


반응형