Program No : 6 :

Write a program in C to check whether the given year is leap or not ?

    program no  : 6
 purpose : check whether given year is leap or not

#include <"stdio.h">

void main()

{
	int year;
	
	scanf("%d", &year);

	if ( year % 4 ==0)
		 printf("leap year");
	else
		 printf("not a leap");

}  

Back