C Assignment to Find Given Year leap year or Not

C Assignment to Find Given Year leap year or Not


#include
#include
void main()
{
int yr;
clrscr();
printf("Please enter the year");
scanf("%d",&yr);
if((yr%400==0)&&(yr/4==0))
printf("leap year");
else
printf("not leap year");
getch();
}



2 comments:

  1. hello, I like your site very much.. but i need small help of yours.. can u please give me ur contact id or no. ?

    waiting for reply.

    ReplyDelete
  2. hi,
    Thanks For Your Comment...


    You can Mail us at : infocomputers108@gmail.com

    ReplyDelete