Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.55 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main ()
  4. {
  5.     int m, f, c;
  6.     while(scanf("%d",&m) != EOF){
  7.         f=0, c=0;
  8.         if(m%400==0||m%4==0&&m%100!=0){
  9.             printf("This is leap year.\n");
  10.             f=1, c=1;
  11.         }
  12.         if(m%15==0){
  13.             printf("This is huluculu festival year.\n");
  14.             c=1;
  15.         }
  16.         if(m%55==0&&f==1){
  17.             printf("This is buluculu festival year.\n");
  18.             c=1;
  19.         }
  20.         if(c==0) printf("This is an ordinary year.\n");
  21.         printf("\n");
  22.     }
  23.  
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement