Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int input;
- float pln;
- float gbp;
- float usd;
- float eur;
- main()
- {
- cout << "podaj wartosc w PLN: ";
- cin >> pln;
- gbp = pln * 0.20;
- usd = pln * 0.26;
- eur = pln * 0.23;
- cout << "1. na GBP" << endl;
- cout << "2. na EUR" << endl;
- cout << "3. na USD" << endl;
- cout << "podaj, ktora opcje chcesz wybrac: ";
- cin >> input;
- switch(input)
- {
- case 1:
- cout << pln << "PLN to " << gbp << " GBP" << endl; break;
- case 2:
- cout << pln << "PLN to " << eur << " EUR" << endl; break;
- case 3:
- cout << pln << "PLN to " << usd << " USD" << endl; break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement