home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
17 Bit Software 1: Collection A
/
17Bit_Collection_A.iso
/
files
/
1124.dms
/
1124.adf
/
sources_pcq
/
matrice.p
next >
Wrap
Text File
|
1991-04-15
|
424b
|
41 lines
program matrice;
CONST
ligne =3;
colo =3;
type
TABL = ARRAY [1..LIGNE,1..COLO] OF integer;
const
a : tabl =
(
(1,1,1),
(2,1,0),
(3,0,1));
B : tabl =
(
(2,1,0),
(1,2,3),
(1,2,1));
var
i,j : integer;
C : tabl;
begin
for i := 1 to ligne do
begin
for j :=1 to colo do
begin
c[i,j]:= (a[i,1]*b[1,j])+
(a[i,2]*b[2,j])+
(a[i,3]*b[3,j]);
write(c[i,j],'/t');
end;
writeln;
end;
end.