Advertisement
noshin98

uva10070

Jun 20th, 2016
2,864
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
  11.  
  12.  
  13.            if((n%4==0)||(n%100==0)||(n%400==0))
  14.            {
  15.                printf("This is leap year\n");
  16.  
  17.             }
  18.             if(n%15==0)
  19.             {
  20.                 printf("This is hulukulu festival year\n");
  21.  
  22.             }
  23.             if(n%55==0)
  24.             {
  25.                 printf("This is bulukulu festival year\n");
  26.             }
  27.  
  28.         }
  29.         if((n>2000)&&(n%4!=0)&&(n%400!=0)&&(n%15!=0)&&(n%55!=0))
  30.  
  31.            {
  32.                printf("This is an ordinary number\n");
  33.             }
  34.     }
  35.  
  36.  
  37.  
  38.     return 0;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement