Tuesday, May 14, 2013

Find Out The Leap Year

    /* Find Out The Leap Year */

    /* Suchetan Dey */
   
    #include<stdio.h>
    #include<conio.h>
    void main()
      {
         int y;
         printf("Enter The Year ");
         scanf("%d",&y);
         if(y%400 ==0 || (y%100 != 0 && y%4 == 0))
             printf("%d Is A Leap Year ",y);
         else
             printf("%d Is Not A Leap Year ",y); 
         getch();
      }


The Output is :-

No comments:

Post a Comment