错了!
第一段:闰年判断方法:
第二段:算法设计:
①.、输入年份;
第三段:参考代码:
#include stdio.h
int main()
{
int year;
scanf("%d",year);//输入年份
printf("是闰年\n");
else printf("不是闰年\n");//输出结果.
return 0;
}
#includestdio.h
int? runnian(int n)
return 1;
else
int i = 0;
int t = 0;
printf("请输入一个年份:");
scanf("%d", i);
t =runnian(i);
if (t == 1)
printf("%d? 是闰年\n", i);
printf("%d? 不是闰年\n", i);
扩展资料:
判断标准为
缘由
以上就是土嘎嘎小编为大家整理的c语言用小函数闰年多少天相关主题介绍,如果您觉得小编更新的文章只要能对粉丝们有用,就是我们最大的鼓励和动力,不要忘记讲本站分享给您身边的朋友哦!!