C Programming
Computer Programming

Program in c to Check enter year is a Leap year



Write a Program in c to Check enter year is a Leap year

\* C Program to to Check enter year is a Leap year *\

# include < stdio.h >
int   main( )
{

int   year ;
printf(" Enter a year : ") ;
scanf("%d ", & year) ;
if (   year  % 4 == 0 )
{

printf("\n The Entered year is Leap year.") ;

}
else
{

printf("\n The Entered year is not a Leap year.") ;

}
return ( 0 );

}

Output of Program:

Output of Program in C to Check enter year is a Leap year