namespace ConsoleApplication8
{
class Program
{
static void Main(string[] args)
{
DisplayHashCode("");
DisplayHashCode("p");
DisplayHashCode("pa");
DisplayHashCode("pas");
DisplayHashCode("pass");
DisplayHashCode("passw");
DisplayHashCode("passwo");
DisplayHashCode("passwor");
DisplayHashCode("password");
Console.ReadLine();
}
static void DisplayHashCode(String Operand)
{
int HashCode = Operand.GetHashCode();
Console.WriteLine("The hash code for \"{0}\" is: 0x{1:X8}, {1}",
Operand, HashCode);
}
}
}