Created
July 5, 2015 14:35
-
-
Save bilalbaraz/0024d475d704e4ebc661 to your computer and use it in GitHub Desktop.
Matematikte Özel Sayılar: Hilbert Sayıları
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
#!/usr/bin/env python | |
# -*-coding: iso-8859-9 -*- | |
print("### HILBERT SAYILARI ###\n"); | |
k = int(raw_input("Ust sinir giriniz:")); | |
i = 1; | |
if k <= 0: | |
print("Ust sinir pozitif tam sayi olmalidir."); | |
else: | |
while i <= k: | |
sonuc = (i-1)%4; | |
if sonuc == 0: | |
print(i); | |
i = i + 1; | |
print("\nUst sinira kadar olan (ust sinir dahil) tum hilbert sayilarini listeledik."); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment