Radio Shack TRS-80 User Manual page 184

Micro computer system
Hide thumbs Also See for TRS-80:
Table of Contents

Advertisement

SAMPLE
ANSWER
TO
EXERCISE
5-3:
3gf
c =
(F-32)* 5/9
SAMPLE
RUN FOR
5-3:
65
DEGREES FAHRENHEIT
=
18.3333 DEGREES CELSIUS
SAMPLE
ANSWER TO
EXERCISE
5-4:
Two
possible
answers:
30
(9
8)
-
(7
6)
= 28
30
-
{9
-(8-(7-6)»
=
28
Sample
Programs:
10 A
=
30
-
(9
-
(8
-
(7 -
6)))
20
PRINT
A
Or
line
10 might be
A =
30
-
(9-8)-(7-6)
Try
a
few on your own.
SAMPLE
ANSWER FOR
EXERCISE
6-1
:
10
A =
5
20 IF
A<>5 THEN
50
30
PRINT "A EQUALS
5
"
40
END
50
PRINT
"A DOES
NOT EQUAL 5"
SAMPLE
RUN FOR
6-1
A
EQUALS
5
182

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents