#include<conio.h>
#include<stdio.h>
#include<iostream.h>
main()
{
char pilih,menu[15],bonus[20];
clrscr();
cout<<"Warteg
Kangasepsule"<<endl;
cout<<"==================="<<endl;
cout<<"Pilihan Menu :"<<endl;
cout<<"A.
Jengkoletot"<<endl;
cout<<"B. Peterongan"<<endl;
cout<<"----------------------"<<endl;
cout<<"Pilih
Menu Warteg [A/B]: ";cin>>pilih;
cout<<endl;
if
(pilih=='A' || pilih=='a')
{
strcpy(menu,"Jengkoletot");
strcpy(bonus,"Teh Manis");
}
else if (pilih=='B' ||
pilih=='b')
{
strcpy(menu,"Peterongan");
strcpy(bonus,"Jus Melon");
}
else
{
strcpy(menu,"Tidak pilih menu");
strcpy(bonus,"Tidak dapat
bonus");
}
cout<<"----------------------"<<endl;
cout<<"Anda
memilih menu : "<<menu<<endl;
cout<<"Anda mendapat
bonus : "<<bonus<<endl;
getch();
}
Tidak ada komentar:
Posting Komentar