Program to print leep year between 1 to N in c language.

#include<stdio.h>
#include<conio.h>
void main()
{
    int i,n;
    printf(“Enter the year at which you what leep year”);
     Scanf(“%d”,&n);
     for(i=1;i<=n;i++)
     {
           if(i%4==0)
               printf(“%d “,i);
     }
     getch();
}

3 thoughts on “Program to print leep year between 1 to N in c language.

Leave a Reply

Your email address will not be published.