#---------------------------- right diagonal symbol ----------------------------------------
num = int(input("Enter the number :"))
for i in range(num):
for j in range(num,-1,-1):
if(i==j):
print("* ",end='')
else:
print(" ",end='')
print()
#---------------------------- right diagonal number----------------------------------------
num = int(input("Enter the number :"))
for i in range(num):
for j in range(num,-1,-1):
if(i==j):
print(num,end='') # print(i ,end ='')
else:
print(" ",end='')
print()
#---------------------------- left diagonal symbol ---------------------------------------
num = int(input("Enter the number :"))
for i in range(num):
for j in range(num):
if(i==j):
print("* ",end='')
else:
print(" ",end='')
print()
#---------------------------- left diagonal number ---------------------------------------
num = int(input("Enter the number :"))
for i in range(num):
for j in range(num):
if(i==j):
print(num,end='') # print(i ,end ='')
else:
print(" ",end='')
print()
#---------------------------- two diagonal/cross symbol --------------------------------------
num = int(input("Enter the number :"))
for i in range(num,0,-1):
for j in range(num,0,-1):
if(i==j or i+j ==num+1):
print("*",end=' ')
else:
print(" ",end=' ')
print()
#---------------------------- two diagonal/cross number--------------------------------------
num = int(input("Enter the number :"))
for i in range(num,0,-1):
for j in range(num,0,-1):
if(i==j or i+j ==num+1):
print(num,end=' ') # print(i ,end ='')
else:
print(" ",end=' ')
print()
#---------------------------- box with cross --------------------------------------
num = int(input("Enter a number :"))
count=0
for i in range(num+1):
for j in range(num+1,-1,-1):
if(i==j or i+j==num+1 or i==0 or j==0 or i==num or j==num+1):
print("*",end=' ')
else:
print(" ",end=' ')
print()