|
本帖最后由 1452826234 于 2013-10-13 14:00 编辑
楼上那回复怎么用代码格式我不会啊,今天我刚学到这,这是我写的:
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main()
{
int a;
a=1;
while (a<100)
{
printf(" %d",a);
a=a+1;
}
while (a>=1)
{
printf(" %d",a);
a=a-1;
}
Sleep(5000);
return 0;
}
复制进啊哈C里面可能会位置错乱,多出一些空格,以回复为准哦 |
|