C Language (Leap Year)

#include
#include
void main()
{
int year;
clrscr();
printf("Enter Year ");
scanf("%d",&year);

if (year%4==0 && year%100!=0)
printf("\n This is leap year");
else printf("\n This is not leap year");
getch();
}

Comments

Popular posts from this blog

NICOSIA