I have an array and I need to put the $ sign on the output when i print the array. I have seen the ValueType but it did not work with me on an array. please help me, what to do?
here is my code
string[,] Pizza = new string[5, 5]
{
{"Name of Pizza \t", "Small", "Medium", "Large", "XLarge"},
{"Plain \t \t", "8.80", "12.80", "16.80", "20.80"},
{"Hawaian \t", "10.90", "15.90", "20.90", "25.90"},
{"Beefy \t \t", "10.90", "16.90", "21.90", "26.90"},
{"Vegetarian \t", "10.90", "14.90", "19.90", "24.90"}
};
//print the array
Console.WriteLine("what type of Pizza do you want?");
for (int i = 0; i < Pizza.GetLength (0); i++)
{
Console.WriteLine();
for (int j = 0; j < Pizza.GetLength (1); j++)
Console.Write(Pizza[i, j]+'\t');
}
thanks in advance.
This should help you