-
-
Save RimMirK/538f61cc38acf935fb8e1bf441e0edbe to your computer and use it in GitHub Desktop.
123
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from random import* | |
| a = int(input("введи целое число: ")) | |
| x = False | |
| while True: | |
| if a % 2 != 0: | |
| a = a*3+1 | |
| print(a) | |
| continue | |
| if a % 2 != 0: | |
| a /= 2 | |
| print(a) | |
| continue | |
| input() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment