#include <conio.h>
#include <stdio.h>
#include <iostream.h>
main()
{
char menu;
clrscr();
cout<<"Masukkan Kode menu [1/2/3] : ";cin>>menu;
switch(menu)
{
case'1' :
cout<<"nasi goreng";
break;
case'2' :
cout<<"mie goreng";
break;
case'3' :
cout<<"capcay";
break;
}
getch();
}
Tidak ada komentar:
Posting Komentar