#include <iostream>
using namespace std;
int main( ) {
int prendas_vendidas;
int sueldo_base;
int sueldo_total;
std:: cout << "Ingrese la cantidad de prendas vendidas: " ;
std:: cin >> prendas_vendidas;
std:: cout << "Ingrese el sueldo base del vendedor: " ;
std:: cin >> sueldo_base;
if ( prendas_vendidas >= 3 && prendas_vendidas <= 8 ) {
sueldo_total = sueldo_base + ( prendas_vendidas * 25 ) ;
} else if ( prendas_vendidas >= 9 && prendas_vendidas <= 12 ) {
sueldo_total = sueldo_base + ( prendas_vendidas * 45 ) ;
} else if ( prendas_vendidas >= 13 && prendas_vendidas <= 18 ) {
sueldo_total = sueldo_base + ( prendas_vendidas * 70 ) ;
} else {
std:: cout << "Cantidad de prendas vendidas no válida." << std:: endl ;
}
std:: cout << "El sueldo total por día del vendedor es: " << sueldo_total << " pesos." << std:: endl ;
return 0 ;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgcHJlbmRhc192ZW5kaWRhczsKCWludCBzdWVsZG9fYmFzZTsKCWludCBzdWVsZG9fdG90YWw7CgogIHN0ZDo6Y291dCA8PCAiSW5ncmVzZSBsYSBjYW50aWRhZCBkZSBwcmVuZGFzIHZlbmRpZGFzOiAiOwogIHN0ZDo6Y2luID4+IHByZW5kYXNfdmVuZGlkYXM7CgogIHN0ZDo6Y291dCA8PCAiSW5ncmVzZSBlbCBzdWVsZG8gYmFzZSBkZWwgdmVuZGVkb3I6ICI7CiAgc3RkOjpjaW4gPj4gc3VlbGRvX2Jhc2U7CgogIGlmIChwcmVuZGFzX3ZlbmRpZGFzID49IDMgJiYgcHJlbmRhc192ZW5kaWRhcyA8PSA4KSB7CiAgc3VlbGRvX3RvdGFsID0gc3VlbGRvX2Jhc2UgKyAocHJlbmRhc192ZW5kaWRhcyAqIDI1KTsKICB9IGVsc2UgaWYgKHByZW5kYXNfdmVuZGlkYXMgPj0gOSAmJiBwcmVuZGFzX3Zlbm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