Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //by josh
- #include <iostream>
- #include <iomanip>
- using namespace std;
- int main()
- {
- double dollars;
- char code;
- double total;
- //input
- cout << "How many dollars? ";
- cin >> dollars;
- cout << "What is your country code? ";
- cin >> code;
- //processing
- if (code == 'C');
- total = dollars * 1.01615;
- else if (code == 'E')
- total = dollars * .638490;
- else if (code == 'I')
- total = dollars * 40.1798;
- Whats wrong with those elses up there. VS is saying something is wrong.
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement