A year is entered through the keyboard, write a program to determine whether it is leap or not
This is the c source code for: A year is entered through the keyboard, write a program to determine whether it is leap or not
/* A program to find out whether the year is leap or not*/
#include <stdio.h>
#include <conio.h>
void main()
{
int year;
printf(“Enter the value of year:”);
scanf(“%d”,&year);
if ((year%4==0 && year%100!=0)||(year%100==0 && year%400==0))
printf(“The year is leap”);
else
printf(“The year is not leap”);
getch();
}








