Triangle shape with star at the outlet
Write a program that prints the figure below in the output
Write a program that prints the figure below in the output
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
for i in range (7):
j = i + 1
print (j, '=', '*'*j)
for i in range(10):
for j in range(i):
print('*',end=' ')
print('\t\t')
adad=int(input(namber))
for i in range(1,adad+1,1)
print("*" × adad )
def print_stars():
# The number of lines for printing
lines = 7
# Ring to print each line
for i in range(1, lines + 1):
print('*' * i)
# Implementation of the function
print_stars()
for i in range(1, 8, 1):
print(i * "*")
a = int(input("number:"))
w = a
z = 1
while True:
if w <= 0:
break
else:
print('*'*z)
w -= 1
z += 1
a=('*')
print(2*a)
print(3*a)
print(4*a)
print(5*a)
print(6*a)
print(7*a)
Submitting answers is currently unavailable.
You must be logged in to access this section.
Login/Sign up If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.