//file header
#include
#include
#include
#include
//start
main()
{
//variabel
y:
char pilih,lagi;
cout<<"input pilihan :";
pilih = getch();
clrscr();
cout<<"menu: \n\n"<
if(pilih=='1')
{cout<<"nasi goreng\n";}
if (pilih=='2')
{cout<<"mie goreng\n";}
if(pilih=='3')
{cout<<"capcay\n";}
cout<<"\n\ningin input lagi? [Y/T]: \n";
lagi = getche() ;
if (lagi == 'Y' || lagi == 'y')
{
clrscr();
goto y;}
else
{ exit(0);}
getch();
}
No comments:
Post a Comment