谁会用C++,帮忙弄个输出0—999数字的代码

来源:百度知道 编辑:UC知道 时间:2024/09/25 16:32:33
谁会用C++,帮忙弄个输出0—999数字的代码
用循环的嵌套输出

# include <iostream.h>
void main(){
int i;
for(i=0;i<1000;i++)
{ if (i%5==0)
printf("\n");
count << i << " "; }
}

#include <iostream>
void main()
{
for(int i=0;i<1000;i++)
count << i << " ";
}

# include <iostream.h>
void main(){
int i;
for(i=0;i<1000;i++)
count << i << " ";
}

#include <iostream>
int main()
{
for(int i=0;i<1000;i++)
cout<<i;
}

这个要嵌套干什么???

# include <iostream.h>
void main(){
int i;
for(i=0;i<1000;i++)
count << i << " "; }

我看到一群白痴在抄袭有错误的答案