Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- char raide;
- while(true)
- {
- cout<<"Pasirinkite:\n";
- cout<<"A) Britanija\n";
- cout<<"B) Prancuzija\n";
- cout<<"C) Belgija\n";
- cout<<"D) Vokietija\n";
- cin>> raide;
- if (raide == "a")
- {
- cout<<"Pasirinkote Britanija";
- break;
- }
- else
- if (raide=="b")
- {
- cout << "Pasrinkote Prancuzija";
- break;
- }
- else
- if (raide=="c")
- {cout<<"Pasirinkote Belgija";
- break;
- }
- else
- if (raide=="d")
- {cout<<"Pasirinkote Vokietija";
- break;
- }
- else
- continue;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement