本帖最后由 廖子琦 于 2014-12-24 13:45 编辑
[mw_shl_code=c,true]#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b;
a=1;
b=99;
printf("以下为1-100的整数\n");
while (a<=100)
{ printf("%d\n",a);
a=a+1;
}
printf("以下为100-1的整数\n");
while (b>=1)
{ printf("%d\n",b);
b=b-1;
}
system("pause");
return 0;
}
[/mw_shl_code]
|