这样行吗?为什么。
#include <stdio.h>
int main()
{
int year = 2014; //今年是2014年
if (!(year%4<0))
{
printf("今年是平年");
}
else
{
printf("今年是闰年") ;
}
return 0;
}
#include <stdio.h>
int main()
{
int year = 2014; //今年是2014年
if (!(year%4<0))
{
printf("今年是平年");
}
else
{
printf("今年是闰年") ;
}
return 0;
}
2016-05-01
举报