public static void Main()
Console.Write("Input Product id ");
string productId = Console.ReadLine();
Console.Write("Input Product name ");
string productName = Console.ReadLine();
Console.Write("Input Product stock ");
string strAmount = Console.ReadLine();
int amount = int.Parse(strAmount);
Console.Write("Input Product price");
double price = double.Parse(Console.ReadLine());
double totalPrice = amount * price;
Console.WriteLine("- - - - - - - - - - - - - - - - - - - - - - - ");
Console.WriteLine("{0} {1}", productId, productName);
Console.WriteLine("{0} x {1:n} = {2:n} bahts.", amount, price, totalPrice);
Console.WriteLine("- - - - - - - - - - - - - - - - - - - - - - - ");
Console.Write("Inpu Discount (%) : ");
int discount = int.Parse(Console.ReadLine());
double netPrice = totalPrice * ((100 - discount) / 100.0);
Console.WriteLine("- - - - - - - - - - - - - - - - - - - - - - - ");
Console.Write("Total Price = {0:n} bahts.", netPrice);