how may i create this in "c++" with "for"?

1
12
123
1234
12345

Anonymous2013-09-13T12:44:11Z

Favorite Answer

for(unsigned int i=1; i<=5; ++i)
for(unsigned int j=1; j<=i; ++j)
cout << j;

Kubai2013-09-13T19:13:23Z

C++ or java.