.


:




:

































 

 

 

 





, (.. ) , (true), (false). .

(). x y. , . . - .

:

: x < y

: x > y

: x = y

: x <> y

: x <= y

: x >= y

22

Real, Integer, Char ():

= - ;

<> - ;

< - ;

> - ;

<= - ;

>= - .

, Real Integer, . Boolean.

23

.

abs (x)
sqr (x)
sqrt (x)
cos (x)
sin (x)
arctan (x)
exp (x) ex
ln (x)
int (x)
frac (x)

, , , ..

ord (x) - , , .
round (x) - .
trunk (x) - , .

odd (x) - . longint, true, , false .
pred (x) - x.
succ (x) - x.
ord (x) - x.

24

, . , . :

,

,

,

.

25

  • - program, .
    , . . .
  • - , , . begin end .

 

/ , . () , . .

, () .

. () .

, . ; , , , .

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

26

read readln:

read();
readln[()];

. , . :

read(a, b, c); readln(y);

readln;

 

: , , . (, , ).

:

  • , ;
  • , ;
  • , .

27

: , . write writeln:

write();
writeln[()];

, , , write , writeln . writeln .

, , , . , , - .

.

.

, , , .

. , , , "" .

, , . , .

, , . 17 , 10 - .

.

28

- . :

:=

, V:=A; V:=A+1;

, .

, . , .

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

, . , .

30

- . begin end . , . . .

end , , ; . end , end . .

31


.

 

- IF CASE, GOTO. .





:


: 2017-03-18; !; : 195 |


:

:

, , . , .
==> ...

812 - | 738 -


© 2015-2024 lektsii.org - -

: 0.02 .