num=5 while num > 0: print(num) num = num-1 print("Nuovo ciclo while") n=3 while n != 1: print(n) if n % 2 == 0: n = n / 2 else: n = n*3+1