diff --git a/test1 b/test1 new file mode 100644 index 0000000..28c7145 --- /dev/null +++ b/test1 @@ -0,0 +1,12 @@ +import time +a = int(input()) +while a != 1 : + if a % 2 == 0: + a = a/2 + print(a) + else : + a = 3*a + 1 + print(a) + time.sleep(0.5) +else: + print(a)