16. write a program the shape *
Answers
Answered by
1
Answer:
fshsn got hebsb jeja. hehsb hejbw bsjwb hehsb sbebe hwhs behw. hwbw hwh hehe he be beb he bh wvhw be bhebbjejbb
Answered by
1
Answer:
def Shape_of_Diamond(shape):
a = 0
for m in range(1, shape + 1):
for n in range(1, (shape - m) + 1):
print(end=" ")
while a != (2 * m - 1):
print("@", end="")
a = a + 1
a = 0
print()
s = 1
c = 1
for m in range(1, shape):
for n in range(1, s + 1):
print(end=" ")
s = s + 1
while c <= (2 * (shape - m) - 1):
print("@", end="")
c = c + 1
c= 1
print()
shape = 8
Shape_of_Diamond(shape)
Similar questions
English,
1 month ago
Environmental Sciences,
1 month ago
Chemistry,
2 months ago
Hindi,
2 months ago
English,
9 months ago