Computer Science, asked by Srist13, 1 year ago

Write a program to input a year (eg. 1994) and check whether its an leap year

Answers

Answered by rajkumar77
0
#include<stdio.h>
#include<conio.h>
void main()
{
int year;
printf("enter year=");
scanf("%d",&year);
if(year%4==0)
print("given is leap year%d",year);
else
print("given is not a leap year%d",year);
getch();
}

rajkumar77: is ok
Similar questions