Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int year;
- printf("\n enter the year from the keyboard ");
- scanf("%d ", &year);
- if(year%4 == 0)
- printf("\n %d is a leap year ",year );
- else
- printf("\n %d is not a leap year ", year);
- }
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- "year.c" 16L, 242C 1,1 All
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement