|
|
#2
遮天云2010-10-30 08:02
|
程序代码:#include<stdio.h>
void main()
{
int n=2000;
do{
if((n%4==0&&n%100!=0)||n%400==0)
printf("%d是闰年",n);
else
printf("%d不是闰年",n);
n++;
}while(n<=2500);
}
自学C,请大家多多指教。void main()
{
int n=2000;
do{
if((n%4==0&&n%100!=0)||n%400==0)
printf("%d是闰年",n);
else
printf("%d不是闰年",n);
n++;
}while(n<=2500);
}