Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main(int argc , char *argv[]){
- int y ,z;
- scanf ("%d",y);
- if (y>=1901 || y<=2013){
- if (y%4==0 || y%400){
- // This says: If the year is divisible by 4 OR the year is not divisible by 400.
- printf ("Tuesday\n");
- }else if(y%100==0){
- printf("Thursday\n");
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement