aggiunge esercizio 19

This commit is contained in:
2026-04-08 13:50:35 +02:00
parent 80e5d42c7a
commit a9a5c4b7cb
+14
View File
@@ -0,0 +1,14 @@
c0 = int(input("Inserire un numero intero positivo: "))
passi=0
while c0 > 1:
if c0 % 2 == 0:
c0 /= 2
else:
c0 = c0*3+1
passi += 1
print("passi", passi)