Advertisement
Guest User

Untitled

a guest
Jan 31st, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. char raide;
  8. while(true)
  9. {
  10. cout<<"Pasirinkite:\n";
  11. cout<<"A) Britanija\n";
  12. cout<<"B) Prancuzija\n";
  13. cout<<"C) Belgija\n";
  14. cout<<"D) Vokietija\n";
  15. cin>> raide;
  16. if (raide == "a")
  17. {
  18. cout<<"Pasirinkote Britanija";
  19. break;
  20. }
  21. else
  22. if (raide=="b")
  23. {
  24. cout << "Pasrinkote Prancuzija";
  25. break;
  26. }
  27. else
  28. if (raide=="c")
  29. {cout<<"Pasirinkote Belgija";
  30. break;
  31. }
  32. else
  33. if (raide=="d")
  34. {cout<<"Pasirinkote Vokietija";
  35. break;
  36. }
  37. else
  38. continue;
  39. }
  40. return 0;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement