/* Any year is input through the keyboard. write a program to determine
whether the year is a leap year or not. */
#include <stdio.h>
#include <conio.h>
void main(void)
{
int year;
clrscr();
printf("\n\n enter a year::");
scanf("%d",&year);
if(year%400==0)
printf("\n\n Leap Year.");
else
if(year%100==0)
printf("\n\n Not Leap Year.");
else
if(year%4==0)
printf("\n\n Leap Year.");
else
printf("\n\n Not Leap Year.");
getch();
}
Is this Program Correct? or is there more conditions to check..?