CSharp · Console
using System;
public class Program
{
public static void Main()
{
int iCount = 100;
string sHtml = "<table cellpadding='0' cellspacing='0' border='0'>";
for (int i = 1; i < iCount + 1; i++)
{
if (i == 1 || i == 21 || i == 41 || i == 61)
sHtml += "<tr>";
sHtml += "<td>";
sHtml += "<img src='http://lorempixel.com/100/100/people/' style='margin-top:-3px'>";
sHtml += "</td>";
if (i == 20 || i == 40 || i == 60)
sHtml += "</tr>";
}
sHtml += "</table>";
Console.WriteLine(sHtml);
}
}