, , ( ) 2 . .
, , , .
, , , , . :
While B do S,
while (), do (, ) , , S . S , , S , true. , false. , S .
, .
:
Repeat <_> Until <>;
: Repeat, Until - ( , );
<_> - Turbo Pascal;
<> - .
Repeat... Until . , Until, , . , , .
, repeat until, . , () true. , . ( ), . :
|
|
1. .. ( ) , .. .
2. , () .
3. .
21) . . . . .
. . , , . . -, . . , , . , ( ) .
:
var
<>: array[< >] of < >
. , :
var
T: array[1..12] of real;
, -, , -, . (T[1], T[2] ..), 1...12. .
. . . , , , .
, .
, .
. . - . .. , . , : : .
. , : , .
, , . , , .
, .. . . . , , , , , ..
|
|
, ( ).
, ; _ . , , .
, m n , , m*n.
, , , , , ( , ).
( ) .
:
For i:=l to m do > ,
For j:=l to n do > ,
:
For j:=l to n do > ,
For i:=l to m do > ,
, . :
var
Mas: Array[1..5, 1..5] of Integer;
, 5 5 . , - - .
, ( ). . .
3*3, , :
, , , , . , . , a 21 , .
, .