Skip to content

Instantly share code, notes, and snippets.

@programmingfaster0226
Created January 18, 2018 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save programmingfaster0226/4eb3c021f2e62445174241a65b15d34b to your computer and use it in GitHub Desktop.
Save programmingfaster0226/4eb3c021f2e62445174241a65b15d34b to your computer and use it in GitHub Desktop.
aliz
#include<stdio.h>
#include<conio.h>
void main()
{
int year;
printf("enter any year:");
scanf("%d", & year);
if((year%4==0) && (year%100!=0)/(year%400==0))
printf("leap year");
else
printf("not leap year");
getch();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment