using System;
public class HexTable
{
public static void Main()
{
for (int i = 0; i <= 255; i++)
{
if (i < 16) // 0 in the beginning of the first row
Console.Write("0");
Console.Write("{0} ",
Convert.ToString(i, 16)); // Hexadecimal
if (i % 16 == 15) // Jump to next line after 16 data
Console.WriteLine();
}
}
}