.


:




:

































 

 

 

 





- _ ( ) , _. , .. 126 , 63 . .

- . . $. -2147483648 2147483647. - , ( ). - 255 .

- , (*.........*) {........}. :

(*...... {........}........*) {......(*........*).......}. PascalABC.NET //.

 

 

Program <> -

Label -

Const -

Type -

Var -

Procedure -

Function

begin

( )

end.


PROGPAM END. ( ). PROGRAM , . () 26 10 . . .

. , BEGIN END, . , - . , .

. , , . :

READ, , READ(A, B, C);

READLN, , READLN(A, B);

. := 2 : . , .

:

IF THEN 1 ELSE 2;

IF THEN ;

( ): GOTO ;

:

FOR I: = M TO N DO ; ( ),

FOR I: = N DOWNTO M DO ; ( ).

: WHILE DO ;

:

REPEAT 1;

2;

3;

n

UNTIL ;

():

CASE OF

1: 1:

2: 2;

n: n

ELSE

END {of case};

, , ELSE .

 

 

 

 


5. .

 

 


1.

Sin (x) Sin x Real
Cos(x) Cos x Real
Ln(x) Ln x Real
Sqrt(x) Real
Arctan(x) Arctg x Real
Exp(x) ex Real
Sqr(x) x2 Integer
Abs(x) |x| Integer
Odd(x) False, x=2n True, x=2n+1 Boolean
Succ(x) x + 1 Integer
Pread(x) x - 1 Integer
Inc(x) x + 1 Integer
Inc(x,n) x + n Integer
Dec(x) x - 1 Integer
Dec(x,n) x - n Integer

 

 


 

1

 

. , .

 

. , , , , .

 

. b c bx + c = 0.

. a, b c

ax2 + bx + c = 0.

. , . , , , .

 

2

 

. :

V = 1/3ph(R2+Rr+r2),

S = p(R2+(R+r)l+r2).

. x a

w =

. a b .

. 10 , N.

.

x -4 +4 0.5. 2 Repeat While.

3

 

. m S n p :

.

: S, p, n. : m.

. p S , m n . .

. .

. , .

. 30 .

 

 

4

 

. , 10 , , .

 

. , -

. , , , -.

 

. 1912 48 ( ) 13 ( ). 1912 .

 

. = sin x.

 

. , . : Ià1, Và5, Xà10, Là50, Cà100, Dà500, Mà1000. , .

 

. s = (m×s + i) mod c, m, i, c . I : m = 37, i = 3, c = 64. II : m = 25173, i = 13849, c = 65537.

 

. 4 . A. B , , :

A.
N1 N2 N3 N4
1        
2        
3        

 

B.
N1 1,20 0,50
N2 2,80 0,40
N3 5,00 1,00
N4 2,00 1,50

 

A B,

C = A B :

1) , ;

2) , ;

3) , ;

4) ;

5) , ?

. , , , : 112D, 16, 8, 10455.

 





:


: 2016-12-18; !; : 1288 |


:

:

- , - .
==> ...

1320 - | 1261 -


© 2015-2024 lektsii.org - -

: 0.022 .