Another screenshot of running the program, this time with the input $2$:
Entering the code of the program into the compiler, and running it with the input 2. Miriam Briskman, CC BY-NC 4.0.