Program Transpose_Matrix;
Uses Wincrt;
Var A: Array [1..10,1..10] of integer;
i,j,baris,kolom :integer;
Begin
Clrscr;
writeln('PROGRAM TRANPOSE MATRIKS');
Write('Masukkan Jumlah Baris : ');Readln(baris);
Write('Masukkan Jumlah Kolom : ');Readln(kolom);
Writeln;
Gotoxy(1,5);Write('A= ');
for i := 1 to baris do
for j := 1 to kolom do
begin
Gotoxy(j*5,i*2+3);
Readln(A[i,j]);
end;
Gotoxy(20,5);Write('AT=');
for i := 1 to kolom do
for j := 1 to baris do
begin
Gotoxy(j*5+20,i*2+3);
Write(A[j,i]);
end;
writeln;
writeln;
writeln('Nama : YUDHA AGUNG WIRAWAN');
writeln('NIM : 118110038');
End.
Kamis, 03 November 2011
Program Transpose Matriks Pascal
09.24
Guardian
No comments
0 komentar:
Posting Komentar