Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int n;
- printf("ENTER THE ANY YEAR :");
- scanf("%d",&n);
- if(n%4==0 || n%400==0)
- {
- if(n%100==0)
- {
- printf("%d is not leap year\n",n);
- }
- else
- printf("%d is leap year\n",n);
- }
- else
- {
- printf("%d is not leap year\n",n);
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment