#include<iostream>
int main() {
using namespace std;
string nombre, articulo, tarticulo;
double id;
int cant, valort = 0, total;
int val;
cout << "----- BIENVENIDO --------" << endl;
cout << "Ingrese su nombre:" << endl; cin >> nombre;
cout << "Ingrese su numero de identificacion: " << endl; cin >> id;
for (int i = 0; i < 3; i++) {
cout << "Ingrese el nombre del articulo que va a comprar: " << endl; cin >> articulo;
cout << "Ingrese el tipo del articulo a comprar (nacional o importado)" << endl; cin >>
tarticulo;
cout << "Ingrese el valor unitario del articulo: " << endl; cin >> val;
cout << "ingrese la cantidad del articulo" << endl; cin >> cant;
if (tarticulo == "nacional") {
valort = val * cant;
total = valort - (valort * 10 / 100);
else {
valort = val * cant;
total = valort + (valort * 15 / 100);
}
cout << "-----------RECIBO DE PAGO------------\n" << endl;
cout << "Nombre :" << nombre << endl;
cout << "Documento de identidicacion: \n" << id << endl;
cout << "Cantidad: " << cant << endl;;
cout << "Nobre articulo" << articulo << endl;;
cout << "valor unitario:" << val << endl;;
cout << "total" << valort << endl;
return 0;
system("pause");