write an algorithm to order and receive the pizza
please help me with it
Answers
Console.WriteLine("Welcome! We have 3 different sizes, which do you want?: 1.Small - 2.Meduim - 3.Large");
Console.Write("Enter Your Selection: ");
int userSelection = int.Parse(Console.ReadLine());
int price = 0;
//there is my code:
switch (userSelection)
{
case 1:
price += 5;
Console.WriteLine("You are selected Small size, We'll send you :)");
Console.WriteLine("Price: " + price + "$");
break;
case 2:
price += 10;
Console.WriteLine("You are selected Medium size, We'll Send you :)");
Console.WriteLine("Price: " + price + "$");
break;
case 3:
price += 15;
Console.WriteLine("You are selected Large size, We'll Send you :)");
Console.WriteLine("Price: " + price + "$");
break;
default:
HOPE I HELPS YOU.
PLEASE.MARK AS BRAINLIST ANSWER