.. www.engineerscur.blogspot.com: C language program to check whether the given year is leap year or not

C language program to check whether the given year is leap year or not

// program to check whether the given year is leap year or not

#include<stdio.h>
#include<conio.h>
void main()
{
            int a,b;
            clrscr();
            printf("enter year:");
            scanf("%d",&a);
            b=a%4;
            if (b==0)
            {
                        printf("given year is leap year.");
            }
            else
            {
                        printf("sorry given year is not leap year.  :(");
            }

            getch();
}