求闰年,为什么return的是flag,flag什么意思。。。。。
#include <stdio.h>#include <conio.h>
int fun(int n)
{
int flag = 0;
if (n%4 == 0)
if (n%100!=0)
flag = 1;
if (n%400==0)
flag = 1;
return flag;
}
main()
{
int year;
printf("Input the year:");
scanf("%d", &year);
if (fun(year))
printf("%d is a leap year.\n", year);
else
printf("%d is not a leap year.\n", yea