-

  1. ѳ, . .
  2. : ()
  3. ̳
  4. Ͳֲ IJ IJ 'Ҳ.

: , 䳿 , . , 2 . 䳿 .

, . , - . , - () . : , , . , .

:

(53)

PROGRAM AAA;

VAR

A: ARRAY [1..5, 1..3] OF REAL; I,J:INTEGER;

BEGIN

FOR I:=1 TO 5 DO

FOR J:=1 TO 3 DO

READLN (A[I,J]);

FOR I:=1 TO 5 DO

WRITELN (A[I,1]:8,A[I,2]:8,A[I,3]:8)

END.

5.6 .

1. ' (1,2,...,75).

PROGRAM PR1;

VAR

C:ARRAY [1..75] OF REAL;

I,POL,OTR:INTEGER;

BEGIN

POL:=0; OTR:=0;

FOR I:=1 TO 75 DO

BEGIN

READLN (C[I]);

IF C[I]>=0

THEN POL:=POL+1

ELSE OTR:=OTR+1

END;

WRITELN ('- =',POL);

WRITELN ('- =',OTR)

END.

2. (b1,b2,...,b50) .

PROGRAM PR2;

VAR

B:ARRAY [1..50] OF INTEGER; I,MAX,N:INTEGER;

BEGIN

FOR I:=1 TO 50 DO

READLN (B[I]);

B[1]:=MAX; N:=1;

FOR I:=1 TO 50 DO

IF B[I]>=MAX

THEN BEGIN B[I]:=MAX; N:=I END;

WRITELN (' MAX=',MAX);

WRITELN (' N=',N)

END.

3. (5´3) (5´3) K. - .

PROGRAM MATR;

TYPE

MATRA=ARRAY [1..5,1..3] OF INTEGER;

MATRB=ARRAY [1..5,1..3] OF INTEGER;

MATRC=ARRAY [1..5,1..3] OF INTEGER;

MATRD=ARRAY [1..5,1..3] OF REAL;

VAR

A:MATRA; B:MATRB; C:MATRC; D:MATRD;

K:REAL; I,J:INTEGER;

BEGIN

READLN (K);

FOR I:=1 TO 5 DO

FOR J:=1 TO 3 DO READLN (A[I,J]);

FOR I:=1 TO 5 DO

FOR J:=1 TO 3 DO READLN (B[I,J]);

FOR I:=1 TO 5 DO

FOR J:=1 TO 3 DO

C[I,J]:=A[I,J]+B[I,J];

FOR I:=1 TO 5 DO

FOR J:=1 TO 3 DO

D[I,J]:=C[I,J]*K;

FOR I:=1 TO 5 DO

WRITELN (D[I,1]:8, D[I,2]:8, D[I,3]:8);

FOR I:=1 TO 5 DO

WRITELN (C[I,1]:8,C[I,2]:8, C[I,3]:8)

END.

 



  1   2   3   4   5   6   7   8   9   10   11   12   13   14   15  

Ѳ | ֲ | Ͳ ̲ | ˲Ͳ | | ˲ | ² ˲ |

© um.co.ua -