Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <string>
- using namespace std;
- int main()
- {
- const int N = 6;
- string waluty[N] = { "USD","EUR","GBP","CHF","JPY","CAD" };
- float przeliczniki[N] = { 3.8691, 4.2652, 4.9470, 3.8787, 0.035434, 2.9256 };
- cout << "Kantor Walutowy" << endl;
- cout << " " << string(18, '_') << endl;
- for (int n = 0; n < N; n++) {
- cout << "|" << setw(6) << right << waluty[n] << "|";
- cout << setw(8) << left << przeliczniki[n] << "|\n";
- }
- cout << " " << string(18, '-') << endl;
- cout << "Wojciech Sułek zaprasza do chujowego kantoru - Poleca Wojciech Sułek" << endl;
- string s;
- do {
- cout << ">>";
- cin >> s;
- if (s[0] < '0' || s[0]> '9') break;
- }
- while (1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement