#include<stdio.h>
#include<conio.h>
#include<conio.h>
void main()
{
clrscr();
int year;
printf("Enter a Year:");
scanf("%d",&year);
if(year%4==0) //% is used to find remainder
printf("Entered Year is a Leap");
else
printf("Entered Year is not a Leap Year");
getch();
}
Comments
Post a Comment