#include<iostream>
#include<conio>
main()
{
int a;
menu:
cout << "Menu makanan : \n";
cout << "1. Bakso\n";
cout << "2. Moe Ayam\n";
cout << "3. Mie Rebus\n";
cout << "4. Keluar\n";
cout << "Masukkn Pilihan Anda : ";
cin >> a;
switch (a)
{
case 1:
cout << "Anda Memesan BAkso";
break;
case 2:
cout << "Anda Memesan Mie Ayam";
break;
case 3:
cout << "Annda Memesan Mie Rebus";
break;
case 4:
cout << "Anda Tidak Memesan Apa-apa";
goto exit;
break;
defoult:
cout << "Pilihan yang Anda Masukkan Salah";
goto menu;
}
exit:
getch();
}
0 comments:
Post a Comment