using System.Collections.Generic;
public static void Main()
decimal preciounitario=35.000000m;
decimal preciounitariocondescuentos=31.500000m;
decimal porcentajedescuento= 0.1000m;
decimal cantidad = 1.384378m;
decimal importesubtotal = preciounitariocondescuentos *cantidad;
decimal impuesto = preciounitariocondescuentos *0.16m * cantidad;
decimal importedescuento = preciounitario * porcentajedescuento * cantidad;
decimal importetotal = preciounitariocondescuentos *cantidad + impuesto;
Console.WriteLine(Math.Round(impuesto, 6, MidpointRounding.AwayFromZero));
Console.Write("ImporteDescuento: ");
Console.WriteLine(Math.Round(importedescuento, 6, MidpointRounding.AwayFromZero));
Console.Write("ImporteSubtotal: ");
Console.WriteLine(Math.Round(importesubtotal, 6, MidpointRounding.AwayFromZero));
Console.Write("Importetotal: ");
Console.WriteLine(Math.Round(importetotal, 6, MidpointRounding.AwayFromZero));