> 其他 >
输出21世纪所有的闰年.判断闰年的条件是:能被4整除但不能被100整除,或者能被400整除.并按4个年份一组
人气:248 ℃ 时间:2020-01-29 10:08:53
解答
我用C编的,用wintc试验成功.将21世纪设为2000到2099
#include "stdio.h"
#include "conio.h"
main()
{int z;
int i=0,j,n=0,lead;
printf("plesae enter the century,eg:21\n");
scanf("%d",&z);j=(z-1)*100;
for(;i
推荐
猜你喜欢
© 2025 79432.Com All Rights Reserved.
电脑版|手机版