I would have thought that would be pretty straightforward in any programming language. What business problem are you trying to solve or is this schoolwork?
for (int i = 1; i < 5; i++) { for (int j = 1; j <= i; j++) { Response.Write("1"); } Response.Write("<div style='clear:both;'></div>"); }