HALF DIAMOND STAR
a=int(input())
if a in range(3,100):
for i in range(1,a+1):
print('*'*i)
for i in range(a-1,0,-1):
print('*'*i)
else:
print('The pattern is not possible')
12345
1234
123
12
1
a=int(input())
for i in range(1,a+1):
for j in range(1,(a-i)+2):
print(j,end='')
print()
X000X
0X0X0
00X00
0X0X0
X000X
a=int(input())
for i in range(1,a+1):
for j in range(1,a+1):
if(i==j or j==a-i+1):
print('x',end="")
else:
print('0',end="")
print()
0XX
X0X
XX0
a=int(input())
for i in range(1,a+1):
for j in range(1,a+1):
if(i==j):
print('0',end="")
else:
print('x',end="")
print()
54321
54321
54321
54321
54321
a=int(input())
for i in range(a):
for j in range(a,0,-1):
print(j,end=" ")
print()
1
222
33333
444444
5555555
row = int(input())
for i in range(1,row+1):
for j in range(1, row+1-i):
print(' ', end='')
for j in range(1,i+1):
print(i, end='')
for j in range(i-1,0,-1):
print(i, end='')
print()
AAAAA
BBBBB
CCCCC
DDDDD
EEEEE
a=int(input())
for i in range(a):
for j in range(a):
print(chr(i+65),end=" ")
print()
12345
2345
345
45
5
a=int(input())
for i in range(a):
for j in range(i,a):
print(j+1,end=" ")
print()
1
12
123
1234
12345
a=int(input())
for i in range(a):
for j in range(i+1):
print(j+1,end="")
print()
EEEEE
DDDD
CCC
BB
A
rows = int(input())
for i in range(rows,0,-1):
for j in range(1,i+1):
print(chr(i+64), end=" ")
print()
11111
22222
33333
44444
55555
n=int(input())
for i in range(1,n+1):
for j in range(1,n+1):
print(i,end=" ")
print()
5 5
4 4
3
2 2
1 1
a=int(input())
for i in range(1,a+1):
for j in range(1,a+1):
if(i==j or j==a-i+1):
print(a-i+1,end=" ")
else:
print(' ',end="")
print()
A
ABA
ABCBA
ABCDCBA
n = int(input())
for i in range (1, n +1 ):
for j in range (1, n - i + 1):
print(end = " ")
for j in range (1, i + 1):
print(chr(j+64), end = "")
for j in range (i - 1, 0,-1):
print(chr(j+64), end = "")
print()
1
121
12321
1234321
123454321
n = int(input())
for i in range (1, n +1 ):
for j in range (1, n - i + 1):
print(end = " ")
for j in range (1, i + 1):
print(j, end = "")
for j in range (i - 1, 0,-1):
print(j, end = "")
print()