Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int w;
  8. char znak;
  9. do{
  10. system("cls");
  11. "co mam podac: " << endl;
  12. cout<<"1.Kawa"<< endl;
  13. cout<<"2.Herbata"<<endl;
  14. cout<<"3.Mleko"<<endl;
  15. cin>>w;
  16.  
  17. switch(w)
  18. {
  19. case 1: cout<<"podano kawe";
  20. cout<<endl;
  21. break;
  22.  
  23. case 2: cout<<"podano herbate";
  24. cout<<endl;
  25. break;
  26.  
  27. case 3: cout<<"podano mleko";
  28. cout<<endl;
  29. break;
  30.  
  31.  
  32. default: cout<<"nie ma w menu";
  33. cout<<endl;
  34. break;
  35. }
  36. cout<<"czy chcesz cos jeszcze zamowic? (t/n)";
  37. cin>>znak;
  38. } while (znak=='t');
  39. return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement