Advertisement
playridstudio

kod1

Oct 30th, 2020
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. char letter = 'k'; // Katowice, Warszawa, Poznan
  9. switch (letter) {
  10. case 'k':
  11. cout << "Katowice" << endl;
  12. break;
  13. case 'w':
  14. cout << "Warszawa" << endl;
  15. break;
  16. case 'p':
  17. cout << "Poznan" << endl;
  18. break;
  19. default:
  20. cout << "Niezdefiniowany przypadek!" << endl;
  21. break;
  22. }
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement