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