I want to write a code about the Zeller's congruence!! The code below is written to print out the day of the date. But it cany't have the right answe.
Please help!
y=int(input('Enter year:(e.g,2008):'))
m=int(input('Enter month: 1-12:'))
q=int(input('Enter the day of the month:1-31:'))
if m==1 or m==2:
n=12
m=m+n
j=y/100
k=y%100
h = int((((q + 26 * (m + 1) / 10 + k + (k/4) + (j/4) + 5 * j))% 7))
if h==0:
print('Saturday')
elif h==1:
print('Sunday')
elif h==2:
print('Monday')
elif h==3:
print('Thuesday')
elif h==4:
print('Wednesday')
elif h==5:
print('Thrusday')
elif h==6:
print('Friday')