WAP TO FIND OUT YEAR IS LEAP OR NOT
Thursday, July 2, 2009
Leave a Comment
WAP TO FIND OUT YEAR IS LEAP OR NOT
#include<stdio.h>
#include<conio.h>
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
Enter the Year: 2004
Year is Leap
0 comments »
Leave your response!