Вы находитесь на странице: 1из 5

# 1

- .
:

:
1. :
IF
Then 1
Else 2;
2. :
IF Then 1;

IF, IF, ,
.
,
SII-, .

.

1. ( ,
), ;
2. ;
3. .
:
>Y
S=R+2
( ) :
1. ;
2. ,
;
3. .
:
( )
( ) ( > )

: , , .
(NOT) .
: ", ",
.
(NOT)

:
(A > 0) , A 0
. (AND) ,
.
(ND)

Q
Q

, Q
:

(OR) ,

(R)

Q
Q

, Q
:

:
1

(AND)
: . X [-6, 6] :

: -6 6.
: ( -6) ( 6)
: ( >= -6) AND ( <= 6)
2

(OR)
, X
[-6, 6] :
: -6 < > 6.
: ( < -6) ( > 6)
: ( < -6) OR ( > 6)
3
. 5
40 .
, ,
.

a , b .
:
(a >= 5) and (b <= 40)
:

Program Lvet_3;
var a,b:real;
begin
if (a>=5)and(b<=40)
then writeln('vi prinayti')
else writeln('vi ne prinayti');
end.
4
(,
, ),
.

Program Lvet_4;
var a,b,c:real;

begin
c:=180-a-b;
if (a>90)or(b>90)or(c>90)
then writeln('treugolnik tupougolnii')
else
if (a=90)or(b=90)or(c=90)
then writeln('treugolnik praymougolnii')
else writeln ('treugolnik ostrougolnii');
end.
< 0 > 100 :
( < 0 ) (X > 100)

(0 X X 100)
.

, :
( < 0) (Y < 0) (Z < 0)
( < 0) (Y < 0) (Z < 0)

1.
2.
3.

:
;
;
:
a. ;
b. ;
c. .
:

:
, :
1. NOT (( 6<4) AND (4>8)),
2. (A<=A+1) OR (12-3>0),
3. ((2<=2) AND (3 >=3)) OR (15>25).

1
, ,
(X, Y) , :

: (X, Y)
:

Program Lvet_1;
Uses Crt;
var x,y:real;
begin
ClrScr;
writeln('Vvedite koordinati tochki x,y');
if (abs(x)+abs(y)<=1)and(y>=0)
then writeln('Da')
else writeln('Net');
end.

2
V(/)
.
V?
V< 7.8
7.8 V <11.2
11.2 V <16.4
V >16.4

Program Lvet_2;
Uses Crt;
var v:real;
begin
ClrScr;
writeln('Vvedite znachenie ckorosti');
if v<7.8 then writeln('Raketa upadet nas Zemlu');
if (v>=7.8)and(v<11.2) then writeln ('Raketa stanet sputnikom
Zemli');
if (v>=11.2)and(v<=16.4) then writeln('Raketa stanet sputnikom
Solnca');
if v>16.4 then writeln('Raketa pokinet predeli Solnechnoi
sistemi');
end.

## Нижнее меню

### Получите наши бесплатные приложения

Авторское право © 2021 Scribd Inc.