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

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

code_blocks
مسئله مربوطه: مُهر حضور _ مربع 3 (#11) arrow_outward
verified
وضعیت داوری نهایی: پذیرفته شد
terminal
زبان برنامه‌نویسی: Python
schedule
ارسال‌کننده و زمان:
melisa azadi (۱ سال پیش)
descriptionsolution.py ۲۵ خط • ۴۴۳ بایت
1
2x = int(input())
3
4i = 1
5
6while x >= i:
7 j = 1
8
9 if i == 1 or i == x:
10 while x >= j:
11 print("*", end="")
12 j += 1
13 else:
14 print("*", end="")
15 while x - 2 >= j:
16 if i == j+1:
17 print("*",end="")
18 else:
19
20 print(" ",end="")
21 j += 1
22 print("*", end="")
23
24 print("")
25 i += 1
کد ارسال‌شده برای داوری خودکار هاتکدز UTF-8