Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- using namespace std;
- void terpilih(int x, int y)
- {
- cout<<" \nAnda memilih Ini"<<endl;
- if(x==1)
- {
- cout<<" Nasi Goreng"<<endl;
- }
- else if(x==2)
- {
- cout<<" Mie Ayam"<<endl;
- }
- else if(x==3)
- {
- cout<<" Bakso Kuah"<<endl;
- }
- else if(x==4)
- {
- cout<<" Nasi Kuning "<<endl;
- } else
- {
- cout<<" gk ada asw";
- }
- if(y==1)
- {
- cout<<" Air Bening"<<endl;
- }
- else if(y==2)
- {
- cout<<" Teh Kotakn\n";
- }
- else if(y==3)
- {
- cout<<" Jus Nangka\n";
- }
- else if(y==4)
- {
- cout<<" Whisky\n";
- }
- else
- {
- cout<<" Gk ada euy";
- }
- }
- int main()
- {
- int pilih_makan, pilih_minum;
- cout<<"\tMenu Makanan Kita "<<endl;
- cout<<" 1. Nasi Goreng "<<endl;
- cout<<" 2. Mie Ayam"<<endl;
- cout<<" 3. Bakso kuah"<<endl;
- cout<<" 4. Nasi Kuning"<<endl;
- cout<<" Anda Mau Pilih Yang Mana : ";cin>>pilih_makan;
- cout<<endl<<endl;
- cout<<"\tMenu Minuman "<<endl;
- cout<<" 1. Air Bening"<<endl;
- cout<<" 2. Teh Kotak "<<endl;
- cout<<" 3. Jus Nangka "<<endl;
- cout<<" 4. Whisky"<<endl;
- cout<< " Minuman nya gan : ";cin>>pilih_minum;
- terpilih(pilih_makan, pilih_minum);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement