EasyManua.ls Logo

Radio Shack TRS-80 Model 4 - Page 280

Radio Shack TRS-80 Model 4
418 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
RETURN
IRETURN
Statement
I
RIGHT$
Returns control to the line immediately following the most recently
executed GOSUB.
If
the program encounters a RETURN statement without execution of
a matching GOSUB,
an
error occurs.
Sample Program
330
PRINT
"THIS
PROGRAM
FINDS
THE AREA
OF
A
CIRCLE"
340
INPUT
"TYPE
IN
A I,JALUE FOR THE
RADIUS";
R
350
GOSUB
370
380
PR
I NT
"AREA
IS"
;
A:
END
370
A =
3.14
* R * R
380
RETURN
IRIGHT$(slring, number)
Function
I
Returns the rightmost number characters of string.
RIGHT$ returns the last number characters of string.
If
LEN (string) is
less than or equal to number, the entire string is returned.
Examples:
PRINT
RIGHT$(
"WATERMELON",
5)
prints MELON.
PRINT
RIGHT$(
"MILKY
WAY",
25)
prints MILKY WAY.
2-154

Other manuals for Radio Shack TRS-80 Model 4

Related product manuals