Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main ()
- {
- int m, f, c;
- while(scanf("%d",&m) != EOF){
- f=0, c=0;
- if(m%400==0||m%4==0&&m%100!=0){
- printf("This is leap year.\n");
- f=1, c=1;
- }
- if(m%15==0){
- printf("This is huluculu festival year.\n");
- c=1;
- }
- if(m%55==0&&f==1){
- printf("This is buluculu festival year.\n");
- c=1;
- }
- if(c==0) printf("This is an ordinary year.\n");
- printf("\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement