Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
188 B
1
Indexable
Never
def triângulo2(n):
  for c in range(1, n + 1):
    for d in range(n - 1):
      print('.', end="")
    for e in range(1, c + 1):
      print(e, end="")
    print()

triângulo2(5)