Created
September 21, 2017 23:13
-
-
Save ozgurkaracam/de1ddbd03e41e9b742520c8e7f418074 to your computer and use it in GitHub Desktop.
29 Ekim Algoritması Sade hali.
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
i=1923 | |
x=0 | |
c=[] | |
while(i<=2017): | |
if(i%4==0): | |
x=x+366 | |
else: | |
x=x+365 | |
if(x%7 == 0 or x%7==6): | |
c.append(i) | |
i=i+1 | |
print(c," toplam",len(c),"yıl") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment