Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <string>
  4. using namespace std;
  5. int main()
  6. {
  7. const int N = 6;
  8.  
  9. string waluty[N] = { "USD","EUR","GBP","CHF","JPY","CAD" };
  10.  
  11. float przeliczniki[N] = { 3.8691, 4.2652, 4.9470, 3.8787, 0.035434, 2.9256 };
  12. cout << "Kantor Walutowy" << endl;
  13. cout << " " << string(18, '_') << endl;
  14. for (int n = 0; n < N; n++) {
  15. cout << "|" << setw(6) << right << waluty[n] << "|";
  16. cout << setw(8) << left << przeliczniki[n] << "|\n";
  17. }
  18. cout << " " << string(18, '-') << endl;
  19. cout << "Wojciech Sułek zaprasza do chujowego kantoru - Poleca Wojciech Sułek" << endl;
  20. string s;
  21. do {
  22. cout << ">>";
  23. cin >> s;
  24. if (s[0] < '0' || s[0]> '9') break;
  25.  
  26.  
  27.  
  28. }
  29.  
  30.  
  31. while (1);
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement