Advertisement
NdaX404

NIh

Mar 1st, 2020
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.17 KB | None | 0 0
  1. #include <iostream>
  2. #include <conio.h>
  3.  
  4. using namespace std;
  5.  
  6. void terpilih(int x, int y)
  7. {
  8.     cout<<" \nAnda memilih Ini"<<endl;
  9.     if(x==1)
  10.     {
  11.         cout<<" Nasi Goreng"<<endl;
  12.     }
  13.     else if(x==2)
  14.     {
  15.         cout<<" Mie Ayam"<<endl;
  16.     }
  17.     else if(x==3)
  18.     {
  19.         cout<<" Bakso Kuah"<<endl;
  20.     }
  21.     else if(x==4)
  22.     {
  23.         cout<<" Nasi Kuning "<<endl;
  24.     } else
  25.         {
  26.             cout<<" gk ada asw";
  27.         }
  28.     if(y==1)
  29.         {
  30.             cout<<" Air Bening"<<endl;
  31.         }
  32.     else if(y==2)
  33.         {
  34.             cout<<" Teh Kotakn\n";
  35.         }
  36.     else if(y==3)
  37.         {
  38.             cout<<" Jus Nangka\n";
  39.         }
  40.     else if(y==4)
  41.         {
  42.             cout<<" Whisky\n";
  43.         }
  44.             else
  45.                 {
  46.                     cout<<" Gk ada euy";
  47.                 }
  48. }
  49. int main()
  50. {
  51.     int pilih_makan, pilih_minum;
  52.     cout<<"\tMenu Makanan Kita "<<endl;
  53.     cout<<"  1. Nasi Goreng "<<endl;
  54.     cout<<"  2. Mie Ayam"<<endl;
  55.     cout<<"  3. Bakso kuah"<<endl;
  56.     cout<<"  4. Nasi Kuning"<<endl;
  57.     cout<<" Anda Mau Pilih Yang Mana : ";cin>>pilih_makan;
  58.     cout<<endl<<endl;
  59.     cout<<"\tMenu Minuman "<<endl;
  60.     cout<<"  1. Air Bening"<<endl;
  61.     cout<<"  2. Teh Kotak "<<endl;
  62.     cout<<"  3. Jus Nangka "<<endl;
  63.     cout<<"  4. Whisky"<<endl;
  64.     cout<< " Minuman nya gan : ";cin>>pilih_minum;
  65.     terpilih(pilih_makan, pilih_minum);
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement