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