#include<stdio.h>
void main()
{
int leap(int x);//对leap函数的声明//
int x;
printf("Enter year:");
scanf("%d",&x);
if(leap(x)==1)
printf("The results:Yes\n");
else
printf("The results:No\n");
}
int leap(int x)//定义有参函数leap//
{
if(x%400==0||x%100!=0&&x%4==0)
return 1;
else
return 0;
}
void main()
{
int leap(int x);//对leap函数的声明//
int x;
printf("Enter year:");
scanf("%d",&x);
if(leap(x)==1)
printf("The results:Yes\n");
else
printf("The results:No\n");
}
int leap(int x)//定义有参函数leap//
{
if(x%400==0||x%100!=0&&x%4==0)
return 1;
else
return 0;
}