immuntasir

UVA 10070

Feb 11th, 2015
316
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. int main() {
  3.     int a;
  4.     while (scanf("%d",&a) == 1) {
  5.         int b=0;
  6.         if ((a % 4) == 0) {
  7.             printf("This is leap year.\n");
  8.             b++;
  9.         }
  10.         if ((a%15) == 0) {
  11.             printf("This is huluculu festival year.\n");
  12.             b++;
  13.         }
  14.         if ((a%55) == 0) {
  15.             printf("This is bulukulu festival year.\n");
  16.             b++;
  17.         }
  18.         if (b==0) {
  19.             printf("This is an ordinary year.\n");
  20.         }
  21.         printf("\n");
  22.     }
  23.  
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment