Last active
February 28, 2017 00:25
-
-
Save savolla/47711aeaa9bf07d379ce104c842570cd to your computer and use it in GitHub Desktop.
I wanted to greate pi digit generator but I failed......... I tryed to divide 22/7 but getting same number every time..
This file contains 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
b = 10 | |
while True: | |
a = b%7 | |
if b > 7: | |
b = int(str(a) + str(0)) | |
c = b//7 | |
else: | |
c = b//7 | |
print(c) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment