Sharp EL-5250 Manuale Utente

Pagina di 132
78
2.
Entering the program
• To enter more than one alphabetic character, press @ a to apply
the alphabet-lock mode. Press ; to escape from this mode.
3.
Running the program
• If the value of a local variable you defined using @ v is unknown,
the program automatically prompts you to input a value.
• To quit running the program, press j. To run the program again, press
e.
• When a program is running, text displayed by the program (using the Print”
command) will wrap to the next line if the text length exceeds the display
width.
• You can only enter one command per line except for special cases such as
the ‘If…Goto’ structure.
• For more programming examples, see Chapter 8: Application Examples.
Chapter 7: Programming
Print“B≥=BASE
i
 
1
 
@
 
v
 B1 
e
 
e
 
@
 
 
Print“H≥=HEIGHT
a
 
BASE
 
;
 
e
 
i
 
1
 
@
 
v
 
d
 H1 
e
 
e
 
 
@
 
a
 
=
 HEIGHT 
;
 
e
;
 
A
 
;
 
=
 1 
k
 2 
@
 
v
 
e
 
@
 
v
 
d
 
e
 
e
  
A=1ı2B≥H≥
Print“AREA
i
 
1
 
@
 
a
 
AREA
 
;
 
e
i
 
0
 
;
 
A
 
e
Print A
Program code
Key operations
Procedure
Return to the initial display 
for the PROG mode.
Select and RUN the program.
Enter 4 for B
1
Enter 3 for H
1
j
0
 
(Select the program.) 
e
4
 
e
3
 
e
Key operations
Display
AREA
A=
            6.
RUN ¬º⁄AREA