Program mode ƒrun ⁄new ¤edit ‹del – Sharp EL-5230 User Manual

Page 90

Advertising
background image

88

Program code

Key operations

If T=1 Goto CTOF

i 8 ; T ; = 1 ;
s i 9 @ a CTOF
; e

If T=2 Goto FTOC

i 8 ; T ; = 2 ;
s i 9 @ a FTOC
; e

Goto START

i 9 @ a START ;
e

Label CTOF

i 6 @ a CTOF ;
e

F=(9©5)C≠+32

; F ; = ( 9 z 5
) @ v C0 e e +
32

e

Print F

i 0 ; F e

End

i 5 e

Label FTOC

i 6 @ a FTOC ;
e

C=(5©9)˚(F≠-32)

; C ; = ( 5 z 9
) k ( @ v d F0
e e - 32 ) e

Print C

i 0 ; C e

End

i 5 e

Running the program

4.

Press j to return to the PROG mode
menu.

5.

Press 0, select the program ‘TEMP’
and press e.

• The program prompts you to choose which

conversion you wish to perform. Then it asks you to enter the tempera-
ture value.

PROGRAM MODE
ƒRUN ⁄NEW
¤EDIT ‹DEL

Chapter 8: Application Examples

* The program automatically

prompts you to enter a value for

the local variable C

0

.

* The program automatically

prompts you to enter a value for

the local variable F

0

.

Advertising
This manual is related to the following products: