MENU MAKANAN

program menu_makanan;

uses wincrt;

var

x:integer;

begin

gotoxy(25,2);writeln(‘menu makanan hari ini’);

gotoxy(25,3);writeln(‘=====================’);

gotoxy(22,5);writeln(‘1.steak sapi’);

gotoxy(22,6);writeln(‘2.salad’);

gotoxy(22,7);writeln(‘3.sup iga sapi’);

gotoxy(22,8);writeln(‘4.nasi goreng asap’);

gotoxy(22,10);write(‘menu pilihan Anda: ‘);readln(x);

clrscr;

case x of

1: begin

gotoxy(25,5);write(‘steak sapi’);

gotoxy(22,7);write(‘”SELAMAT MENIKMATI”‘);

end;

2: begin

gotoxy(25,5);write(‘salad’);

gotoxy(22,7);write(‘”SELAMAT MENIKMATI”‘);

end;

3: begin

gotoxy(25,5);write(‘sup iga sapi’);

gotoxy(22,7);write(‘”SELAMAT MENIKMATI”‘);

end;

4: begin

gotoxy(25,5);write(‘nasi goreng asap’);

gotoxy(22,7);write(‘”SELAMAT MENIKMATI”‘);

end;

else

begin

gotoxy(25,5);writeln(‘pilihannya hanya 1,2,3,atau 4’);

gotoxy(20,7);writeln(‘”SILAHKAN MEMESAN LAGI”‘);

end;

end;

end.

Iklan

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Foto Google+

You are commenting using your Google+ account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

Connecting to %s

%d blogger menyukai ini: