Header Ads Widget

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();
}

Post a Comment

3 Comments