Advertisement
Guest User

Untitled

a guest
Apr 25th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.34 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int menu;
  5. int rzecz;
  6.  
  7. int main() {
  8.     cout << "Witamy w naszej restauracji MANGO!" << endl;
  9.     cout << "Wybierz karte: jedzenie (1), napoje (2)." << endl;
  10.     cin >> menu;
  11.     if (menu == 1) {
  12.         cout << "Wybrales karte z jedzeniem!" << endl;
  13.         cout << "Wybierz danie z naszej karty:" << endl;
  14.         cout << "1. Kotlet schabowy" << endl;
  15.         cout << "2. Frytki" << endl;
  16.         cout << "3. Kielbasa" << endl;
  17.         cin >> rzecz;
  18.         if (rzecz == 1) {
  19.             cout << "Wybrales kotlet schabowy!" << endl;
  20.         }
  21.         else if (rzecz == 2) {
  22.             cout << "Wybrales frytki!" << endl;
  23.         }
  24.         else if (rzecz == 3) {
  25.             cout << "Wybrales kielbase!" << endl;
  26.         }
  27.         else {
  28.             cout << "Nie ma takiego dania w naszej karcie" << endl;
  29.         }
  30.     }
  31.     else if (menu == 2) {
  32.         cout << "Wybrales karte z napojami!" << endl;
  33.         cout << "Wybierz napoj z naszej karty:" << endl;
  34.         cout << "1. Woda gazowana" << endl;
  35.         cout << "2. Sok" << endl;
  36.         cout << "3. Lemoniada" << endl;
  37.         cin >> rzecz;
  38.         if( rzecz == 1) {
  39.             cout << "Wybrales wode gazowana!" << endl;
  40.         }
  41.         else if (rzecz == 2) {
  42.             cout << "Wybrales sok!" << endl;
  43.         }
  44.         else if (rzecz == 3) {
  45.             cout << "Wybrales lemoniade!" << endl;
  46.         }
  47.         else {
  48.             cout << "Nie ma takiego napoju w naszej karcie" << endl;
  49.         }
  50.     }
  51.     else {
  52.         cout << "Nie ma takiej karty!" << endl;
  53.     }
  54.     return 0;
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement