For some reason the compiler is not liking the for loops (I think) I can't seem to figure out why my code isn't working, can anyone help?
public static void Main()
{
double BASIC_DOG_PRICE = 2.00;
double CHILI_PRICE = 0.69;
double CHEESE_PRICE = 0.49;
String wantChili, wantCheese;
double price;
Console.Write("Do you want chili on your dog?" );
inputString wantChili = Console.ReadLine;
Console.Write("Do you want cheese on your dog?" );
inputString wantCheese = Console.ReadLine;
for wantChili == 'Y'
for wantCheese == 'Y'
price = BASIC_DOG_PRICE + CHILI_PRICE + CHEESE_PRICE;
forBASIC_DOG_PRICE + CHILI_PRICE;
for wantCheese == 'Y
for(BASIC_DOG_PRICE + CHEESE_PRICE);
for (BASIC_DOG_PRICE);
Console.WriteLine("Your total is {0}", price.ToString("C"));
}
}
2006-12-16
16:08:57
·
4 answers
·
asked by
Christina
2
in
Computers & Internet
➔ Programming & Design