Skip to content

Instantly share code, notes, and snippets.

@chapuzzo
Last active August 9, 2022 17:18
Show Gist options
  • Save chapuzzo/845a03bf247946579922ed4c613ceb68 to your computer and use it in GitHub Desktop.
Save chapuzzo/845a03bf247946579922ed4c613ceb68 to your computer and use it in GitHub Desktop.
fila = 1
while fila <= 5:
i = 1
while i <= fila:
print('*', end='')
i += 1
print()
fila += 1
print('=' * 6)
fila = 5
while fila > 0:
i = 1
while i <= fila:
print('*', end='')
i += 1
print()
fila -= 1
print('=' * 6)
fila = 1
while fila <= 5:
i = 1
while i <= 6 - fila:
print('*', end='')
i += 1
print()
fila += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment