Most of us remember our birthdays but not our birth day! One way to calculate this is to use a formula called Zellers Congruence. The formula is
day = (abs(2.6m – 0.2) + k + y + (y div 4) + (c div 4) – 2c)) mod 7
The result will be a number in the range 1 to 7. Print out the day if Sunday =1, Monday = 2, etc
The variables are:
Can you write a program that calculates the day that you were born on?