Program Matrik Transpose

Program Matrik_Transpose;
Uses Crt;
Type Matrik = Array [1..3,1..3] of integer;
Var
Awal,MatrikT: Matrik;
I,J : Integer;
Begin
ClrScr;
TextColor(155);
Awal[1,1] := 1;Awal[1,2] := 2;Awal[1,3] := 3;
Awal[2,1] := 4;Awal[2,2] := 5;Awal[2,3] := 6;
Awal[3,1] := 7;Awal[3,2] := 8;Awal[3,3] := 9;
Writeln(‘Matrik Awal :’);
Writeln(‘ By ULtr4′);
For I := 1 to 3 do
Begin
For J := 1 to 3 do
Begin
Write(Awal[I,J]:2,’ ‘);
End;
Writeln;
End;
Writeln;
For I := 1 to 3 do
Begin
For J := 1 to 3 do
Begin
MatrikT[I,J] := Awal[J,I];
End;
End;
Writeln(‘Matrik Tranpose :’);
Writeln(‘ Poenya gue ‘);
For I := 1 to 3 do
Begin
For J := 1 to 3 do
Begin
Write(MatrikT[I,J]:2,’ ‘);
End;
Writeln;
End;
End.

  1. Belum ada komentar.
  1. No trackbacks yet.

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: