Other Symbols - Sharp MZ-80B Basic Manual

Personal computer double precision disc
Hide thumbs Also See for MZ-80B:
Table of Contents

Advertisement

60
3 . 1 .23 O ther
symbols
?
200 ? "A+ B=" ; A + B
2 1 0 PRINT "A+ B =" ; A+ B
220 A = X : B=X ' 2 : ? A, B
230 PRINT "AB" ;
EF"
"
240 INPUT "X=" ; X$
" E "
250 PRINT "AB", "CD" ,
3 00 DIM A (20), B$ (3 , 6)
320 A$ = "SHA RP BASIC"
330 B$ = "MZ-80B"
340 C$= "ABC " + "C HR$ (3)
$
500 LIMIT $BFFF
5 50 S = SIN (X*n/ 1 80)
Can be used instead of PRINT. Therefore, the statement on line
number 200 is identical in function to that on line number 2 1 0.
Separates two statements from each other. This separator is used
when multiple statements are written on the same line . Three state­
ments are written on line number 220.
CD" ;
Displays characters to the ri
"
on the left . The statement on line 230 displays "ABCDEF " on the
screen with no spaces between characters.
Displays "X=" on the screen and awaits entry of data for X$ from
the keyboard.
Displays character strings in a tabulated format; i.e. AB first ap­
pears, then CD appears in the position corresponding to the start­
ing position of A plus 1 0 spaces and E appears in the position cor­
responding to the starting position of C plus 10 spaces.
A comma is used to separate two variables.
Indicates that characters between double quotation marks form a
string constant .
Indicates that the variable followed by a dollar sign is a string vari­
able.
Indicates that numeric data following a dollar sign is represented in
hexadecimal notation.
n represents 3 . 1 4 1 5 92653589 793 ( ratio of the circumference of a
circle to its diameter ) .
gh
t of separators following characters

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents