int main() { for (int i=1; i<=10; i++) { for (int j=1; j<=10; j++) if (j>=i) cout << j; else cout << " "; cout << endl; } return 0; }
不能正常运行
vs c++
#include <iostream> using namespace std; int main() { for (int i=1; i<=10; i++) { for (int j=1; j<=10; j++) if (j>=i) cout << " " << j; else cout << " "; cout << endl; } return 0; }
加我QQ577976846,我给你弄
这是我之前做的
不需要谢谢
你弄出来了没?
我找老师了
谢谢你们的回答,感谢!