dim valorproducto as double
dim tasainteres, interes, valortotalproducto, enganche, valorcuota as double
dim numerocuotas as integer
Console.WriteLine("Ingrese valor del producto: ")
valorproducto = Console.ReadLine()
Console.WriteLine("Ingrese porcentaje de tasa de interés: ")
tasainteres = Console.ReadLine()
Console.WriteLine("Ingrese número de cuotas: ")
numerocuotas = Console.ReadLine()
interes = valorproducto * (tasainteres/100) * numerocuotas
valortotalproducto = valorproducto + interes
Console.WriteLine("Ingrese valor de enganche: ")
enganche = Console.ReadLine()
valorcuota = (valortotalproducto - enganche) / numerocuotas
valorcuota = valortotalproducto / numerocuotas
Console.WriteLine("Valor inicial del producto: Q.{0:F2}" ,valorproducto)
Console.WriteLine("Interés por crédito: Q.{0:F2}" ,interes)
Console.WriteLine("Valor final del producto: Q.{0:F2}" ,valortotalproducto)
Console.WriteLine("Total de cuota mensual a pagar: Q.{0:F1}" ,valorcuota)
Console.WriteLine("a " & numerocuotas & " meses")