program Kali_Matrix;
uses wincrt;
var
a,b,c : array [1..50,1..50] of integer;
i,j,k,n,m,p : integer;
begin
clrscr;
writeln('Ukuran matrix A');
write('Baris : '); readln(n);
write('Kolom : '); readln(m);
writeln;
writeln;
writeln('Ukuran matrix B');
writeln('Baris : ',m);
write('Kolom : '); readln(p);
writeln;
for i:=1 to n do
for j:=1 to m do
begin
write('Elemen A[',i,',',j,'] : ');
readln(a[i,j]);
end;
writeln;
for i:=1 to m do
for j:=1 to p do
begin
write('Elemen B[',i,',',j,'] : ');
readln(b[i,j]);
end;
for i:=1 to n do
for j:=1 to p do
for k:=1 to m do
c[i,j] := c[i,j] + a[i,k]*b[k,j];
writeln;
writeln;
writeln('Hasil dari perkalian Matrix A dengan Matrix B adalah : ');
Writeln;
for i:=1 to n do
begin
for j:=1 to p do
write(c[i,j],' ');
writeln;
end;
writeln;
readln;
end.
Bila ada yang kurang harap di maklumi karena saya juga masih belajar,,,
Popular
-
One of the Miracles Qur'anOne of the Miracles Qur'an When referring to the sun and moon in the Qur'an , emphasized th…
-
Android Is Top Mobile OS, But Apple Leads in DevicesGoogle's Android operating system now leads the U. S. smartphone bazaar obscure a 39 percent…
-
Android grabs number one mobile operating system rankingIn June, Android was the most - used mobile operating system, according to Nielsen. The Google …
-
Avoid caffeinated beverages During FastingInstead, avoid caffeinated drinks during the month of Ramadan. The impetus, since stated by Dr. Ti…
-
Apple’s iPhone is the Most Popular Phone in U.SFuture Google’s Android was the most popular operating system in the U.S. smartphone market in Jun…
-
Apple And Android King Of Smartphone 2011Apple and Android obtain taken over the smart phone mart agency the heavenly body and amuse rid of…
-
Google + New month, It is not BehaviourPressure extent four, the immortalization of Google + began to decrease. Users accounts that were …
Post a Comment
Post a Comment