public static void Main()
double pdescuento, porcentaje, pproducto, totaldescuento, totalpagar;
Console.WriteLine("Ingrese porcentaje de descuento");
pdescuento = Double.Parse(Console.ReadLine());
porcentaje = pdescuento/100;
Console.WriteLine("Ingrese precio de producto");
pproducto = Double.Parse(Console.ReadLine());
totaldescuento = pproducto*porcentaje;
totalpagar = pproducto - totaldescuento;
Console.WriteLine("El valor a pagar es: {0:C2}",totalpagar);