Wednesday 18 March 2015

wap to find year is leap or not

#include<stdio.h>
#include<conio.h>
void main()
{
   int year;
   clrscr();
   printf("\n enter the year");
   scanf("%d",&year);
   if(year%4==0&&year%400==0&&year%100!=0)
   printf("\n year is leap year:");
   else
   printf("\n not leap year");
   getch();
   }

No comments:

Post a Comment