#include<iostream.h>void print(int w){for(int i=1;i<=w;i++) {for (int j=1;j<=i;j++) cout<<i<<" "; cout<<endl; }}void main(){print(5);}
谢谢各位高手啦