#include<stdio.h>
int main()
{
int year;
printf("Enter the year:- ");
scanf("%d",&year);
if(year%100 !=0)
{
if(year%4 ==0)
{
printf("This is a leap Year");
}
else
{
printf("This is not a leap Year");
}
}
else
{
if(year%400 == 0)
{
printf("This is a leap year");
}
else
{
printf("This is not a leap year");
}
}
return 0;
}
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (1)
Unfortunately, we are not in the leap year. </>