Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<string.h>
- int main ()
- {
- char st[10000];
- int i, x, f, c;
- long long m=0;
- while(scanf(" %[^\n]",st)!= EOF){
- x=strlen(st);
- for(i=0;i<x;i++){
- m=(m*10)+(st[i]-'0');
- }
- 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