Showing posts with label Program of finding Leap Year. Show all posts
Showing posts with label Program of finding Leap Year. Show all posts

Jan 30, 2013

Program of finding Leap Year

/*Program of finding Leap Year*/

#include"stdio.h"
#include"conio.h"
void main()
{
clrscr();
int Year,x,y,z;
printf("Enter Year=");
scanf("%d",Year);
x=Year%4;
y=Year%100;
z=Year%400;
if((x==0&&y|=0)||z==0)
printf("This is a Leap Year");
else
printf("this is not a Leap Year");
getch();
}

Popular Posts