read more...
post by sanjay Vishwakarma
Sunday, October 3, 2010
write a program to accept the year form user to determine whether the year is a leap year or not ?
#include
#include
void main()
{
int year;
clrscr();
printf("\n\t Enter the year \t:\t");
scanf("%d",&year);
if(year%4==0)
printf("\n\t%d its a leep year",year);
else
printf("\n\t%d its aa not a leep year",year);
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment