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();
}

No comments:

Post a Comment

Thank you for visit this site. You will get many programming news from here and learn programming very easily.

Popular Posts