/******************************************************************************
Online C Compiler.
Code, Compile, Run and Debug C program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <stdio.h>
#include <stdlib.h>
char nombre;
float precio, cantidad, descuento, prodtotal, monto1, iva, total;
int main()
{
printf("Ingrese el nombre del producto: ");
scanf("%s", &nombre);
printf("Ingrese el precio del producto: ");
scanf("%f", &precio);
prodtotal = precio * cantidad;
descuento = prodtotal*0.15;
monto1 = descuento-prodtotal;
iva = monto1*0.16;
total = monto1+iva;
printf("Producto: %s\n", &nombre);
printf("Precio: %f\n", precio);
printf("Descuento: %f\n", descuento);
printf("IVA: %f\n", iva);
printf("Total a pagar: %f\n", total);
return 0;
}