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”)
n = int(input(''))
for i in range(n):
print(“* * * * *”)
print(“* *”)
print(“\n”)
Comments
Leave a comment