Computer Programming and Concept
Here You Will Know Only About Computer Programming and Concept.
Wednesday, December 3, 2008
A Program that will Count Leap Year
#include
void main ()
{
int year,
printf ("Enter the year: ");
scanf ("%d", & year);
if (year % 4 = = 0 & & year % 100! = 0 || year % 400 = = 0)
{
printf ("It is a leap year\n");
}
else
{
printf ("It is not a leap Year\n");
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment