Advertisement
noshin98

10070

Jun 20th, 2016
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.68 KB | None | 0 0
  1. #include<stdio.h>
  2. int main ()
  3. {
  4.     long long int n;
  5.     while(scanf("%lld",&n)!=EOF)
  6.     {
  7.         if(n>=2000)
  8.         {
  9.  
  10.            if((n%4==0)||(n%100==0)||(n%400==0))
  11.             {
  12.                 printf("This is leap year\n");
  13.  
  14.             }
  15.             if(n%15==0)
  16.             {
  17.                 printf("This is huluculu festival year\n");
  18.  
  19.             }
  20.             if(n%55==0)
  21.             {
  22.                 printf("This is bulukulu festival year\n");
  23.             }
  24.  
  25.         }
  26.         if((n>2000)&&(n%4!=0)&&(n%400!=0)&&(n%15!=0)&&(n%55!=0))
  27.  
  28.             {
  29.                 printf("This is an ordinary number\n");
  30.             }
  31.     }
  32.  
  33.  
  34.  
  35.     return 0;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement