Program in C to find out Year is leap or not (IF-ELSE)

Write a program in C to find out Year is leap or not (IF-ELSE)

#include <stdio.h>
#include <conio.h>

void main ()
{
          int a;
          clrscr ();
          printf ("Enter the Year: ");
          scanf("%d",&a);
          if (a%4==0)
          {
                   printf ("\nYear is Leap");
          }
          else
          {
                   printf("\nYear is not Leap");
          }
          getch ();
}


Post a Comment