Enter a number Then the program will take that number and if it’s: Even, it will divide the number by 2 Odd, it will multiply the number by 3 and add 1 Then it keeps going until it reaches one, because when the number is 1, it counts as odd, so it multiplies by 3 (number is 3) and then it adds 1 (number is 4). After that it is even so it divides by 2 (number is 2) and then it divides by 2 again because it’s even (number is 1) and then it repeats, forever.
I got the algorithm from a YouTube video: https://scratch.mit.edu/discuss/youtube/094y1Z2wpJg/ The PTE (pen text engine) is made by @-rex- so thanks to him cuz I wasn’t gonna use my own cuz I was too lazy :P