Array

Uses wincrt;
Const
max=5;
Type
Lagu=array[1..max] of string[10];
Var
JnsLg :lagu;
i:integer;
begin
For i:=1 to max do
JnsLg[1]:='POP';
JnsLg[2]:='KRONCONG';
JnsLg[3]:='ROCK';
JnsLg[4]:='JAZZ';
JnsLg[5]:='COUNTRY';
For i:=1 to max do
writeln(i,'. ',JnsLg[i]);
end.

Hasilnya :

array.gif

Posted on Desember 10, 2007, in Pascal and tagged , , , , . Bookmark the permalink. Tinggalkan komentar.

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 )

Gambar Twitter

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

Foto Facebook

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

Foto Google+

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

Connecting to %s

%d blogger menyukai ini: