Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int w;
- char znak;
- do{
- system("cls");
- "co mam podac: " << endl;
- cout<<"1.Kawa"<< endl;
- cout<<"2.Herbata"<<endl;
- cout<<"3.Mleko"<<endl;
- cin>>w;
- switch(w)
- {
- case 1: cout<<"podano kawe";
- cout<<endl;
- break;
- case 2: cout<<"podano herbate";
- cout<<endl;
- break;
- case 3: cout<<"podano mleko";
- cout<<endl;
- break;
- default: cout<<"nie ma w menu";
- cout<<endl;
- break;
- }
- cout<<"czy chcesz cos jeszcze zamowic? (t/n)";
- cin>>znak;
- } while (znak=='t');
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement