.


:




:

































 

 

 

 


:

7

: , , , Pascal.

: , , -, , Pacsal.

:

2- y.

: Pascal:program Primer; { }uses Crt; { , }var { } x,y,s: integer; {x,y,s }begin { } ClrScr; { } WriteLn(' '); { } ReadLn(x,y); { } s:= x + y; { } WriteLn(' ',s); { S} ReadLn; { }end. { }

, , (integer) (real).


Pascal:

x abs(x) integer, real integer, real
x sin(x) real real
x cos(x) real real
arctan(x) real real
sqrt(x) real real
2 sqr(x) integer, real integer, real
(e= 2.718282...) exp(x) real real

Pascal:

: IF THEN ; , 1.
: IF THEN 1 ELSE 2; :
  : FOR i:= N1 TO N2 DO ; i , N1 , N2 , , .
  : WHILE DO ;  
  : REPEAT UNTIL ; , .  
       

- ( REPEAT) , begin end;

; ( ).

1. x, y, z. a, b, :

1  
2  
3  
4  
5  
6
7
8

2. , .

1 a b.
2 a b.
3 y(x): y = x2 x > 1 y = x x <= 1.
4 |5x - 4|.
5   [a, b], [c, d] . , .
6 .
7 .
8 y(x): x > 1 y = x2 x <= 1.

3. , .

1 n, x. S= sin(x) + (sin(x))2 + + (sin(x))n.
2 n, x. S= x + x 2 ++ x n.
3 n, x. S= x * x 2 ** x n.
4 .., 18% . , N .. (N>M).
5 .. 1,2% . , N .. (N<M).
6 , , 1,8% . , N , M (N>M).
7 , , 0,7% . , N , M (N>M).
8 .. M .. 2,3% . , N . (N>M).

 



<== | ==>
, wait notify | 1.
:


: 2016-09-03; !; : 443 |


:

:

, , .
==> ...

1730 - | 1400 -


© 2015-2024 lektsii.org - -

: 0.015 .