Monday 27 June 2016

                  Leap Year Or NOt.........


#include<stdio.h>
#include<conio.h>
void main()
{
    int y;
        printf("Enter Any Year");
                   scanf("%d",&y);
if(y%400==0||(y%100!=0&&y%4==0))
                          printf("Leap Year");


                          else
                         printf("Not A Leap Year");
getch();
clrscr();
}

No comments:

Post a Comment