Thursday, December 18, 2008

Program To find out Year is leap year or not.

void main ()

{

int a;

clrscr ();

printf ("Enter the Year: ");

scanf("%d",&a);

if (a%4==0)

{

printf ("\nYear is Leap");

}

else

{

printf("\nYear is not Leap");

}

getch ();

}

Output :




No comments:

Post a Comment