Michael W.

asked • 02/12/21

Can you help me convert this to assembly?

n = int(input("Enter the height of the pattern (must be greater than 0): "))


if (n > 0):

for x in range(n):

for y in range(x):

print("* ", end='')

print(x+1,end='')

for y in range(x):

print(" *",end='')

print()

else:

print("Invalid Entry!\n")

1 Expert Answer

By:

Patrick B. answered • 02/13/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.