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