Need solution for C# Problem.
The Problem: A store is running a promotion: if the total purchase price is equal to or exceeds 10000, the price will be discounted by 20%. The program you are given takes the total purchase price as input. Complete the given method to take the total purchase price as an argument, and calculate and return the discounted price if campaign's requirement is satisfied. The method should return the same price if discount is not given. Sample Input 13000 Sample Output 10400 Explanation 13000>10000, so the discount should be given: 13000-(0.2*13000) = 10400. Hint You need to use if else statements inside the method. My code: namespace SoloLearn { class Program { static int Discount(int x) { //complete the method body if (x >= 10000) { double totalPrice; totalPrice = (x * 0.2) - x; } else { Console.WriteLine(x); } } static void Main(string[] args) { int totalPrice = Convert.ToInt32(Console.ReadLine()); //call the method Discount(totalPrice); } } } error CS0161: 'Program.Discount(int)': not all code paths return a value How to fix?