Best collection of C programs
Tuesday, January 4, 2011
LEAP YEAR
WAP
TO FIND OUT YEAR IS LEAP OR NOT (IF-ELSE)
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 ();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment