C Program To Check Leap Year Using Function

C Program :
/* Aim: Write a function for the following function prototype
void Leap(int l) */ 

#include<stdio.h>

void Leap(int l);  // Leap Function Prototype

void main()
{
	int l;
	printf("\n Enter any year:- ");
	scanf("%d",&l);

	Leap(l);
}

// Leap Function

void Leap(int l)
{
	if(l%4==0)
		printf("\n %d is leap year \n \n",l);
	else
		printf("\n %d is not leap year \n \n",l);

} // End of the code 


/* Output of above code:-

[root@localhost ~]# cc leap.c
[root@localhost ~]# ./a.out

 Enter any year:- 2012

 2012 is leap year 

*/