/*It is complied on Turbo C++ 3.0*/
# include <stdio.h>
# include <conio.h>
void main( )
{
int year;
clrscr( );
printf(“Enter a year:”);
scanf(“%d”,&year);
if(year%4==0& &year%100!=0|| year%400==0);
printf(“The above given year IS a leap year”);
else
printf(“The above given year IS not a leap year”);
getch();
}
0 comments:
Post a Comment