Computer Science, asked by soumalyasamanta45, 21 days ago

16. write a program the shape *​

Answers

Answered by rahulkoduru123
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 ytritik48
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