Computer Science, asked by sanskar0805, 2 months ago

It's a programming based question :

Q. Write a program to print the following star pattern :

* * *

* * for n = 3

* * *

Solved another question which is a star pyramid (image is attached)
I want solution in my form

Attachments:

Answers

Answered by CoderRishav
1

Answer:

for i range(3):

for j in range(3):

if i == 1 and j == 1:

print(" ",end="")

else:

print("* ",end="")

print()

Similar questions