feat: Initial commit
This commit is contained in:
7
printTriangolo.py
Normal file
7
printTriangolo.py
Normal file
@@ -0,0 +1,7 @@
|
||||
n = int(input("Inserisci un numero: "))
|
||||
|
||||
for i in range(1, n + 1, 2):
|
||||
spaces = n - i
|
||||
smez = int(spaces/2)
|
||||
|
||||
print(" "*smez+"*"*i+" "*smez)
|
||||
Reference in New Issue
Block a user