#include "stdio.h"
void main()
{
int year=1000;
while(year++<=2000)
{
if(year%400==0||(year%4==0&&year%100!=0)) printf("%10d",year);
}
}
时间: 2024-10-27 17:32:55
#include "stdio.h"
void main()
{
int year=1000;
while(year++<=2000)
{
if(year%400==0||(year%4==0&&year%100!=0)) printf("%10d",year);
}
}