program hari dalam pascal

Program hari;

uses wincrt;

var x:integer;

begin

writeln(‘HARI’);

writeln(‘=====’);

writeln (‘1.minggu’);

writeln (‘2.senin’);

writeln (‘3.selasa’);

writeln (‘4.rabu’);

writeln (‘5.kamis’);

writeln (‘6.jumat’);

writeln (‘7.sabtu’);

writeln (‘masukkan nomor pilihan anda:   ‘);readln (x);

clrscr;

case x of

1:begin

write (‘minggu’);

end;

2:begin

write (‘senin’);

end;

3:begin

write (‘selasa’);

end;

4:begin

write (‘rabu’);

end;

5:begin

write (‘kamis’);

end;

6:begin

write (‘jumat’);

end;

7:begin

write (‘sabtu’);

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 )

w

Connecting to %s

%d blogger menyukai ini: