# Collatzin lukujono kielellä CLEAR / INCREASE / PRINT / REPEAT # Toimii vain tapauksessa X = 6 PRINT X # tulostaa 6 # 6 → 3 CLEAR X INCREASE X INCREASE X INCREASE X PRINT X # tulostaa 3 # 3 → 10 CLEAR X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X PRINT X # tulostaa 10 # 10 → 5 CLEAR X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X PRINT X # 5 → 16 CLEAR X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X PRINT X # 16 → 8 CLEAR X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X PRINT X # 8 → 4 CLEAR X INCREASE X INCREASE X INCREASE X INCREASE X PRINT X # 4 → 2 CLEAR X INCREASE X INCREASE X PRINT X # 2 → 1 CLEAR X INCREASE X PRINT X