move to repo.or.cz
[letusc.git] / ch2 / exercises2 / ex1.c
blob8b5ca9e5f952306ca0c520245b4cd68fa6751f98
1 #include<stdio.h>
3 int main()
5 int year;
6 printf("Enter the year: ");
7 scanf("%d",&year);
9 if((year%4==0)&&(year%100!=0)||(year%400==0))
11 printf("The year is a leap year\n");
13 return 0;