arrow_forward همه ارسال‌ها

جزئیات ارسال کد#112

verified
وضعیت داوری نهایی: پذیرفته شد
terminal
زبان برنامه‌نویسی: Python
schedule
ارسال‌کننده و زمان:
behrad pashaei (۳ سال پیش)
descriptionsolution.py ۱۷ خط • ۲۴۱ بایت
1n=int(input())
2i=0
3space=0
4star=n
5while i<n:
6 j=0
7 while j<star:
8 print("*",end='')
9 j+=1
10 j=0
11 while j<space:
12 print(" ",end='')
13 j+=1
14 space+=1
15 star-=1
16 print("")
17 i+=1
کد ارسال‌شده برای داوری خودکار هاتکدز UTF-8