ProAnswers.org

Write a C program to check the given year is Leap Year or not?

#include

#include 

void main() 

{ 

int a; 

clrscr(); 

printf(“enter the year

”);

scanf(“%d”,&a); 

if(a%4==0) 

printf(“leap year”); 

else 

printf(“not a leap year”); 

getch(); 

} 

Output: 

enter the year: 

1998 

not a leap year.