hello i am supposed to display the ascii character set from 32 to 100 and then from 225-250. I have found the code to show 32 to 100 but cannot think of how to put 225 to 250 in there as well. here is my code. I just need to add an additional string of the ascii character set from 225 to 250 underneath it.
using System;
namespace hexbox
{
class Program
{
public static void Main(string[] args)
{
Console.Write(" Dec Char Hex\n -------------\n");
int min = 032;
int max = 100;
for ( int i = min; i < max; i++ )
{
// get ascii character
char c = (char) i;
// get display string
string display = string.Empty;
if (char.IsWhiteSpace(c))
{
display = c.ToString();
}
else if (char.IsControl(c))
{
display = "control";
}
else
{
display = c.ToString();
}
// write table row
Console.Write(string.Format("{0: 000}{1, 3}{0, 6:X2}\n", i, display));
}
}// end Main
}// end class
}// end namespace