double totalmoney = 0; while (true) { Console.WriteLine(" OSU Snacks menu"); Console.WriteLine("Enter 1 for soda, price = $1"); Console.WriteLine("Enter 2 for cookies, price = $2"); Console.WriteLine("Enter 3 for chips, price = $1.5"); string i = Console.ReadLine(); int userinput = Convert.ToInt32(i); if (userinput == 1) { Console.WriteLine("You choose soda. How many do you want?"); string amount = Console.ReadLine(); int amounts = Convert.ToInt32(amount); double unitprice = 1; Console.WriteLine("Press y if that is all for today:"); string bagel = Console.ReadLine(); if (bagel == "y") { totalmoney = amounts * unitprice ; break; } } else if (userinput == 2) { Console.WriteLine("You choose cookies. How many do you want?"); string amount = Console.ReadLine(); int amounts = Convert.ToInt32(amount); double unitprice = 2; Console.WriteLine("Press y if that is all for today:"); string bagel = Console.ReadLine(); if (bagel == "y") { totalmoney = amounts * unitprice; break; } } else if (userinput == 3) { Console.WriteLine("You choose chips. How many do you want?"); string amount = Console.ReadLine(); double amounts = Convert.ToDouble(amount); double unitprice = 1.5; Console.WriteLine("Press y if that is all for today:"); string bagel = Console.ReadLine(); if (bagel == "y") { totalmoney = amounts * unitprice; break; } } else { Console.WriteLine("Sorry. We don't have it."); } } Console.WriteLine("Total money to pay: $" + totalmoney); Console.WriteLine("press any button to exit"); Console.ReadLine();