标签:ffffff code printf 语言 turn -o oss shadow 不能
题目:打印闰年 int main()
{
int count = 0;//解法一
int year = 1000;
for (year = 1000; year <= 2000; year++)
{
if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0))
{
printf("%d ", year);
count++;
}
}
printf("\n总共有%d年\n", count);
return 0;
}
运行结果
![](https://s4.51cto.com/images/blog/202010/31/b3a78d508b26d188920225df9ccdf342.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
标签:ffffff code printf 语言 turn -o oss shadow 不能
原文地址:https://blog.51cto.com/14950896/2545765