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

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

code_blocks
مسئله مربوطه: مُهر حضور _ مربع 3 (#11) arrow_outward
verified
وضعیت داوری نهایی: پذیرفته شد
terminal
زبان برنامه‌نویسی: Python
schedule
ارسال‌کننده و زمان:
melisa azadi (۱ سال پیش)
descriptionsolution.py ۴۵ خط • ۶۰۱ بایت
1
2x = int(input())
3
4satr1 = x
5
6while satr1 > 0:
7
8 print("*", end="")
9
10 satr1 -= 1
11
12print("")
13
14satrvasat = x - 2
15
16while satrvasat > 0:
17
18 tedadevasat = x
19
20 while tedadevasat > 2:
21
22 if tedadevasat == x:
23 print("*", end="")
24 if tedadevasat == satrvasat + 2 :
25 print("*", end="")
26 else:
27 print(" ",end="")
28
29 tedadevasat -= 1
30
31 satrvasat -= 1
32 print("*")
33
34
35satrn = x
36
37
38
39while satrn > 0:
40
41 print("*", end="")
42
43 satrn -= 1
44
45
کد ارسال‌شده برای داوری خودکار هاتکدز UTF-8