De euros a dólares

an anonymous user · September 16, 2020 · C++
#include <iostream>
using namespace std;
int main(void) {
    
    int euros;
    float dolares;
    
    cout << "Euros a cambiar?" << endl;
   
    cin >> euros;
    dolares = euros * 1.1242;
    cout << "Euros=" << euros << endl;
    cout << "Dolares=" << dolares << endl;
    return 0;
}

Comments

Please sign up or log in to contribute to the discussion.