Breaking

Leap year or not


#include<stdio.h>
#include<stdlib.h>
void main()
{
  Int year;
  Printf("Enter year : ");
  Scanf(" %d", & year);

   if(year%400==0)
   {
      Printf("%d is a leap year",year);
   }
   else if(year%100==0)
   {
     Printf("%d is not a leap year ", year);
   }
   else if(year%4==0)
   {
     Printf(" %d is a leap year ", year);
   }
    else
    {
       Printf(" %d is not a leap year ", year);
    }  
}

Enter year :2012 

2012 is a leap year