#include <iostream>
using namespace std;
int main () {
   float enganche;
    float carro;
    cout << "Ingresa el precio del carro";
    cin >> carro;

    if (carro > 250000) {
    enganche = carro * (35.0 / 100);
        cout << "El enganche $ --:/" << enganche  << endl; 
    }
    else {
     enganche = carro * (25.0 / 100);
        cout << "El enganche $" << enganche << endl;
    }
    float mensualidad;
    if (carro > 250000) {
        mensualidad = (carro - enganche) /24;
        cout << " La mensualidad es: $" << mensualidad << endl;
    }
    else { 
        mensualidad = (carro - enganche) /18;
        cout << "La mensualidad es: $" << mensualidad << endl;
    }
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: