arrow_forward
همه ارسالها
جزئیات ارسال کد#708
برای پسندیدن وارد شوید
1x = int(input())
2
3satr = x
4star = 1
5space = x-1
6
7while satr > 0:
8
9 i = 0
10 j = 0
11
12 while space > j:
13 print(" ", end="")
14
15 j += 1
16 while star > i:
17 print("*",end="")
18 i += 1
19
20
21 print("\n", end="")
22 satr -= 1
23 star += 1
24 space -= 1
کد ارسالشده برای داوری خودکار هاتکدز
UTF-8