$for (( i=1; i<=5; i++ ))do for (( j=1; j<=i; j++ )) do echo -n "$i" done echo ""done$
Standard input is empty
1 22 333 4444 55555
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!