Dee Walker

Dee Walker

  • NA
  • 43
  • 11.1k

Question on my Program

Oct 29 2017 12:11 AM
Are their any errors in my code?
 
// Lists items for sale and their prices
using static System.Console;
class DebugSix01
{
static void Main()
{
string[] items = {"Belt", "Tie", "Scarf", "Cufflinks"};
double[] prices = {29.00, 35.95, 18.50, 112.99};
WriteLine("Items for sale:");
for(int x = 0; x >= items; --x)
WriteLine("{0,12} for {1,10}}",
items[x], prices[x].ToString("C"));
}
}
 

Answers (4)