.


:




:

































 

 

 

 


N 4.




 

, ( , ), . , , . :

Program Matrix1;

Uses crt;

Const n=5;

Var i, j: Integer;

A: Array [1..n, 1..n] of integer;

Begin

ClrScr;

Randomize; { }

{ }

For i:=1 to n do

For j:=1 to n do

A[i,j]:=Random(20); {A[i,j] , 20}

{ }

For i:=1 to n do

Begin

For j:=1 to n do write(A[i,j]:5);

Writeln;

End;

End.

 

, ..

 

. .

s:=0;

for j:=1 to n do s:=s+b[i,j]; { i- }

 

. .

For i:=1 to n do

Begin

s:=0;

For j:=1 to n do s:=s+A[i,j]*B[j];

C[i]:=s;

end;

 

.

 

.

1. n*n. , b[i,j] , , i,j , 2,.

 

2. i,j , i j 1. n*m 0 1 , b[i,j] 1, a[i,j] .

 

3. n*n. , b[i,j] , , i,j , 2,.

 

4. 2*n. , n*n 1,.

 

5. 6*9 , , , ., .

 

6. 17 .

 

7. n*n. , b[i,j] , , i,j , 2,.

 

8. i,j , i j 1. n*m 0 1 , b[i,j] 1, a[i,j] a[i,j] 0.

 

9. 2*n. , n*n 1,.

 

10. , . 10*15 .

 

11. n*n. , b[i,j] , , i,j , 2,.

 

12. i,j , i j 1. n*m 0 1 , b[i,j] 1, a[i,j] a[i,j].

 

13. m*n, . , . .

 

14. n*n. , b[i,j] , , i,j , 2,.

 

15. 2*n. , n*n 1,.

 

16. n , .

 

17. n*n. , b[i,j] , , i,j , 2,.

 

18. 7*4. , , ( ) .

 

19. 2*n. , n*n 1,.

 

20. n*n. , b[i,j] , , i,j , 2,.

 





:


: 2015-10-27; !; : 740 |


:

:

: , .
==> ...

2180 - | 1809 -


© 2015-2024 lektsii.org - -

: 0.015 .