Question #314153

Write a program that uses loops to print out a design of following using asterisks:

* * * * *

* *

* * * * *

* * * * *

* *

* * * * *


* * * * *

* * * * *


* * * * *

* * * * *


The program should only use the following print statements:

print(“* * * * *”)

print(“* *”)

print(“\n”)

Expert's answer

n = int(input(''))
for i in range(n):
    print(“* * * * *”)

    print(“* *”)

    print(“\n”)
LATEST TUTORIALS
APPROVED BY CLIENTS