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