Harus dikuasai :

  • deklarasi array 1 dimensi :
nama_array: array [batas_bawah..batas_atas] of tipe_data;
ar : array[0..100,0..100] of integer;
  • deklarasi array 2 dimensi :
nama_array : array[batas_bawah1..batas_atas1,batas_bawah2..batas_atas2] of tipe_data;
ar: array[0..100,0..100] of integer;
  • inisialisasi matriks:
fillchar(ar,sizeof(ar),0);
  • membaca matriks 2 dimensi:
for i := 1 to baris do begin
for j := 1 to kolom do begin
read(ar[i,j]);
end;
readln;
end;

Latihan Contest :

Latihan Online Judge:

 

3 Responses to Array

  1. ziaul says:

    ada beberapa link soal array diatas yang rusak,

    mohon diperhatikan

  2. msatrio says:

    ka,contoh array dimensi satu salah tuh,hehe

  3. mau tanya kalau array 1 dimensi
    bukannya kayak gininya

    ar : array [1..100] of integer;

Leave a Reply to Vederis Leunardus Cancel reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Set your Twitter account name in your settings to use the TwitterBar Section.