public static void Main()
Console.Write("Enter the shape of your pizza [1]Circle [2]Square [3]Triangle ");
int shape = int.Parse(Console.ReadLine());
while (shape > 3 || shape <= 0)
Console.WriteLine("Choose only among [1]Circle [2]Square [3]Triangle ");
shape = int.Parse(Console.ReadLine());
Console.Write("Enter radius: ");
int radius = int.Parse(Console.ReadLine());
area = Math.PI * Math.Pow(radius, 2);
Console.Write("Enter side: ");
int side = int.Parse(Console.ReadLine());
Console.Write("Enter base: ");
int b = int.Parse(Console.ReadLine());
Console.Write("Enter height: ");
int h = int.Parse(Console.ReadLine());
Console.WriteLine("Invalid Shape: Bye");
Console.Write("Enter toppings :");
int toppings = int.Parse(Console.ReadLine());
while (toppings < 4 || toppings > 12)
Console.WriteLine("Choose only from 4 to 12 toppings");
toppings = int.Parse(Console.ReadLine());
if (toppings < 4 || toppings > 12)
Console.WriteLine("Invalid Number of Toppings: Bye");
price = 27.85 * area + 15.75 * toppings;
Console.Write("What is your name? ");
name = Console.ReadLine();
Console.Write("What is your gender? ");
gender = Console.ReadLine();
while (gender != "male" && gender != "female")
Console.WriteLine("Enter only male or female");
gender = Console.ReadLine();
if (gender.ToLower().Equals("Male"))
else if (gender.ToLower().Equals("Female"))
Console.WriteLine("Gender Unknown: Bye");
Console.WriteLine("\n\n======================================");
Console.WriteLine("Name: " + name);
Console.WriteLine("Pizza: " + pizzaShape);
Console.WriteLine("Price: " + price);
Console.WriteLine("\nThank you. Please come back {0} {1}", title, name);