using System;
using System.Text;
public class Program
{
public static void Main()
var ba = new byte[] { 0, 0, 0 };
StringBuilder hex = new StringBuilder(ba.Length * 2);
foreach (byte b in ba)
hex.AppendFormat("{0:x2} ", b);
Console.WriteLine(hex.ToString().Trim());
}