#include<stdio.h>
int main()
{
int i = 1;
while(i<=100)
{
if(i%2 ==1)
printf("%d\n",i);
i++;
}
return 0;
}
或者
#include<stdio.h>
int main()
{
int i = 1;
while(i<=100);
{
printf("%d\n",i);
i+=2;
}
return 0;
}
标签:输出,return,奇数,int,while,includeint,printf,100,main From: https://blog.51cto.com/u_15841203/5785796