Monday, 10 October 2016

How to check the year is leap year or not

#include<stdio.h>
#include<conio.h>
void main()
{
      int year;
      clrscr();
              printf("Enter the year:\n");
              scanf("%d",&year);
 
   if (year%4==0)

           printf("Its a leap yr");
   else
          printf("its not a leap yr");
     getch();
}



Download the .C File from here

No comments:

Post a Comment