Untitled
unknown
plain_text
6 months ago
637 B
4
Indexable
#include<stdio.h> #include<stdlib.h> #include<string.h> int main() { int count; char year[1002]; while((scanf("%s",year))!= EOF) { count = 0; if((atoi(year)%400 ==0) || (atoi(year)%4==0 && atoi(year)%100!=0)) { count++; printf("This is leap year.\n"); if(atoi(year)%55 == 0) { printf("This is bulukulu festival year.\n"); } } if(atoi(year)%15 == 0) { count++; printf("This is huluculu festival year.\n"); } if(count==0) { printf("This is an ordinary year.\n");} printf("\n"); } }
Editor is loading...
Leave a Comment