.
8.1.
. : , . , .
goto
.
: goto ̳ ( ).
goto .
:
a=5
b=75
goto s
w:
print sin(q)*sqr(b/a)
stop
s:
q=cos(a)*exp(b/a)
..
goto w
: 1 s ; 2 w .
if.thenelse (䳅.).
if.
:
if then [else ]
- . , then else. , else.
, a>b*c m1.
1
cls
input a
b=1
c=5
if a>b*c then goto m1
print "second"
goto m3
m1:
print "first"
print "a>b*c"
m3:
a>b*c first, , , second. , , then, .
2
cls
input a
b=1
c=5
if a>(b*c) then goto m1 else m2
m1:
print "a>b*c"
print "first"
goto m3
m2:
print "second"
m3:
2 else. : then, goto m1 ( m1). , else, goto m2 ( m2 ). goto then else .
if a then
(: , , then).
, . :
|
|
if a*b/2>20 and c>d/3 then m1 else n1
if.thenelse .
on goto ( ) .
:
on goto
6 , . 1 , 2, - . , , on goto , .
" " , , . 255 .
input "":t
on t goto m1, 25,n
m1:
print " 1- "
stop
25 print " 2- "
stop
n:
print " 3- "
: input 1, 2, 3, t , .
on goto (, sng(g)+2), .
8.2.
8.2.1. .
8.2.2. ³ (. . . 4) , . .
8.2.3. .
8.2.4. .
8.2.5. .
8.2.6. ³ (. . . 4) , . .
8.2.7. .
8.2.8. .
8.2.9. .
8.3. .
8.3.1. .
8.3.2. .8.2.
8.3.3. ,