.


:




:

































 

 

 

 





.

. .

, ( , , ). , , . .

:

- - ( );

- - ( );

- - ( 7.0);

- - - (.. ).

, , , - - - . , . , . , .

,

 

Function SUMM (A: array[1..100] of Real): Real;

 

, -, :

 

Type aArr = array[1..100] of real;

Function SUMM (A: aArr): Real;

 

.

-

- ( ) , , .

- - . - , .

- , , , . , .

2.5.

 

Procedure MIN_MAX(Max,Min: Real; n: Word);

Function Tabulir(X,Y: Integer): Real;

 

- , , :

 

Prl(Sqr(X),Sqr(Y),A*A);

2.6. .

-.

 

Type

aArr = Array[1..] of Integer;

Var Massiv: aArr; Maxim: Integer;

 

.

 

2.7.

 

Function Max(Mas: aArr; N: Byte): Integer;

Var Ma: Integer; i: Byte;

Begin

Ma:= Mas[1];

For i:= 2 to N Do

If Ma < Mas[i] then Ma: = Mas[i];

Max:= Ma { . }

End;

 

35 . , : Maxim:= Max(Massiv,35);

. rr. . , .

-

- -, VAR. VAR , .. .

2.8. Procedure MaxMin(A: rr; Var Max, Min: Real; N: Word);

Max, Min- -, N - -.

- , . - . , , :

Type rr = array [1.. 100] of Integer;

rr.

2.9.

.

-.

 

Type rr = Array [1.. 50] of Integer;

Var Massiv: rr; Maxim: Integer;

 

:

 

Function Max(Var Mas: ; N: Byte): Integer;

Var Ma: Integer; i: Byte;

Begin Ma:=Mas[1];

For i:= 2 to N Do

If Ma < Mas[i] then Ma: = Mas[i];

Max:= Ma

End;

 

35 :

Maxim:= Max(Massiv,35);

. , , . ( , , ). , , , .

-

, . -. -, (, ..), . . -. , , , . - 7.0.

- -, Const. Const , .. .

2.10. Function NewString(Const S: String): String;

- , . - , .

- .

2.11.

, -.

 

Function Max(Const Mas: rr; N: Byte): Integer;

Var Ma: Integer; i: Byte;

Begin

Ma:= Mas[1];

For i:= 2 to N Do

If Ma < Mas[i] then Ma:= Mas[i];

Max:= Ma

End;

- - . , .

2.12. Function Tqual(Var Param1, Param2; Len: Word):Boolean;

Param1, Param2 - - ( , , , -, - ..); Len - -.

, , , , .

2.13. . - :

 

Function Max(Var Masr; N: Byte): Integer;

Type aArray = array[Maxint] of Integer; { }

Var : Integer; i: Byte;

Begin := aArray(Mas)[1];

For i:= 2 to N Do

If < aArray(Mas)[i] then := aArray(Mas)[i];

Max: =

End;

 

( ), . , .





:


: 2016-11-18; !; : 1964 |


:

:

, - , ; , - .
==> ...

1478 - | 1487 -


© 2015-2024 lektsii.org - -

: 0.019 .