Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- string kon, ty;
- int wybor;
- int main()
- {
- do{
- cout << "Podaj imie konia: ";
- cin >> kon;
- cout << "Podaj Twoje imie: ";
- cin>> ty;
- cout<<endl;
- cout<< "imie konia to: " <<kon<< endl;
- cout<< "Twoje imie to: " <<ty;
- cout << endl;
- cout<< "Czy chcesz cos zmienic?"<<endl;
- cout<< "1. Tak"<<endl;
- cout<< "2.Nie"<< endl;
- cin>> wybor;
- switch (wybor)
- {
- case 1:
- }while(wybor!="2")
- break;
- case 2:
- cout<<"2";
- break;
- default:
- cout<<"Nie ma takiej opcji";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement