1) Find the dollar to peso conversion rate. You can go to
Reuters to get the latest exchange rate.
2) Then Argentinian peso for example:
int main()
{
double dollar, peso;
int rate;
peso = 0;
cout << "Enter dollar amount: ";
cin >> dollar;
cout << "Enter exchange rate:";
cin >> rate;
cout.setf(ios::fixed);
cout.precision(2);
peso += dollar * rate;
cout << dollar << " dallars is equal to " << peso << " peso's." << endl;
return 0;
}
With this program you input the amount in dollars and it will give you the amount in peso's.
×