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

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

verified
وضعیت داوری نهایی: پذیرفته شد
terminal
زبان برنامه‌نویسی: Python
schedule
ارسال‌کننده و زمان:
melisa azadi (۱ سال پیش)
descriptionsolution.py ۳۷ خط • ۴۵۱ بایت
1
2x = int(input())
3
4z = x
5i = x
6ii = x
7n_2 = x - 2
8
9while i > 0:
10 print("*",end="")
11
12 i -= 1
13
14print("\n", end="")
15
16while n_2 > 0:
17
18 j = x
19
20 while j > 0:
21
22 if j == z or j == 1:
23 print("*", end='')
24
25 else:
26 print(" ", end='')
27
28 j -= 1
29
30 print("\n", end="")
31
32 n_2 -= 1
33
34while ii > 0:
35 print("*",end="")
36
37 ii -= 1
کد ارسال‌شده برای داوری خودکار هاتکدز UTF-8