C Program to check Year is Leap Year or Not

#include<stdio.h>
int main()
{
	int year;
	printf("Enter a Year: ");
	scanf("%d",&year);
	
	if((year%4 == 0) && (year%100 !=0) || (year%400 == 0))
	{
			printf("%d is Leap Year",year);
	}
	else
	{
		printf("%d is not Leap Year",year);
	}
	
	return 0;
}

Output

Enter a Year: 2016
2016 is Leap Year