Tuesday, 9 July 2013

Program to Check Year is Leap or Not

#include <stdio.h>
void main()
{
int year;
clrscr ();
printf("Enter the number");
scanf("%d",&year);
if(year%4==0)
printf(%d is "Leap Year");
else
printf(%d is "Not Leap Year");
getch();

}

1 comment:

  1. Bro..... Sorry to say that there is a logical error in your code....... ithinkicangivethecode.blogspot.in
    Ask any queries may be im helpful.......

    ReplyDelete