julia> while n!=1 global counter+=1 print("$(n)=>") if n%2==0 global n÷=2 else n=3n+1 end end println("1.")