#include<stdio.h>
#include<conio.h>
void main()
{
int year;
clrscr();
printf("Enter any year - ");
scanf("%d",&year);
 if((year%4 == 0 && year%100 != 0) || (year%400 == 0))
  {
   printf("leap year");
  }
   else
  {
   printf("not-leap year");
  }
 getch();
}
INPUT
Enter any year - 2004
OUTPUT
leap year

Leave a Reply

Subscribe to Posts | Subscribe to Comments

All Notes on BCA

All Notes  on BCA
BCA all subjects notes

Total Pageviews

Translate

Powered by Blogger.

Copyright © All Notes on BCA