Program to find a year is leap year leap year or not

#include<conio.h>

#include<stdio.h>

void main()

{

int a;

clrscr();

printf("Enter the year");

scanf("%d",sa);

if(a%4==0)

{

printf("year is a leap year");

}

else

{

printf("year is not a leap year");

}

getch();

}

Output

Enter the year 2017

year is not a leap year

Enter the year 2016

year is a leap year


Comments

Popular posts from this blog

Gove confirms mandatory housebuilding targets for councils will be abolished in face of Tory rebellion – UK politics live

Kotak Mahindra Bank Recruitment 2022 Released for Graduate Candidates And Apply Online