How would I implement a simple text based menu in a console application?
<p>I would like to have the option in the Discount price calculator that I wrote for fun to start the program over and was wondering how I'd optimally go about doing it. I would like it to say something similar to: "Would you like to enter another price?" and if the user says "yes" or "y" or "no" etc, either restart the program or exit.I should probably use an if loop right? Can someone please show me how to implement it? Or point me in the right direction? I also feel like I should re-write the program to have methods but I'm unfamiliar with C#. </p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Figure_the_Discount
{
class Program
{
    static void Main(string[] args)
    {
        string price, discount;
        decimal discountedPrice, savedAmount;

        //Receiving the price as input
        Console.WriteLine("Please enter the price of the item.");
        price = Console.ReadLine();
        decimal numPrice = decimal.Parse(price);

        //Receiving the discount as input
        Console.WriteLine("Please enter the discount that you wish to apply");
        discount = Console.ReadLine();
        //Receiving discount from input, divide by 100 to convert to percentile
        decimal numDiscount = decimal.Parse(discount) / 100;

        //Calculate the discounted price with price - (price * discount)
        discountedPrice = numPrice - (numPrice * numDiscount);
        //Calculate the amount of money they saved
        savedAmount = numPrice - discountedPrice;
        Console.WriteLine("The discounted price of this item is: ${0}\nYou saved: ${1}", discountedPrice, savedAmount);
        Console.ReadLine();

    }
}
}
</code></pre>
