Get that discount - practice c#
I have an issue to solve this practice in c#. Can you check my code and let me know what is wrong. I guess you are already familiar with this task, the discount is given in case that the total amount is 10k or more. using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { int totalPrice = Convert.ToInt32(Console.ReadLine()); //call the method Discount; } //complete the method declaration static int Discount() { //complete the method body if (totalPrice >= 10000) { totalPrice = totalPrice -(0.2*totalPrice); Console.WriteLine(totalPrice); }else { Console.WriteLine(totalPrice); } } } }