就这点破事又把我给困扰住了,没问题啊,但就是无法运行
#include "stdio.h"int main(){
int a=0,c;
printf("\n please input number:");
scanf("%d",&c);
while(c--)
printf("%d",a++*2);
}
2011-12-20 22:06
2011-12-20 22:07
程序代码:#include <stdio.h>//你还是用<>别用“”试试
int main(void)//一开始还打错了= =
{
int a=0,c;
printf("\n please input number:");
scanf("%d",&c);
while(c--)
printf("%d",a++*2);
return 0;//加上这个 gcc可以编译运行的= =
}
2011-12-20 22:24
2011-12-20 22:26
2011-12-20 22:26
2011-12-20 22:27
2011-12-20 22:32
2011-12-20 22:47
2011-12-20 23:31
2011-12-21 09:28