152
Chapter 9: Programming Features
9. Sample programs
* Convert temperatures from Celsius to Fahrenheit.
Label START
Print "1. C TO F
Print "2. F TO C
Input S
If S = 1 Goto CTOF
If S = 2 Goto FTOC
Goto START
Label CTOF
Input C
(9/5)
*
C + 32
⇒
F
Print "F
Print F
End
Label FTOC
Input F
(5/9)
*
(F – 32)
⇒
C
Print "C
Print C
End
Execution can be interrupted by pressing
O
.
Use this command if the program enters an infinite loop. Press
;
or
'
to display the program source with the cursor on
the line where interrupted.
* Refer to Appendix “Error Codes and Error Messages” on page
167.
CONVERT
Selects conver-
sion mode
Celsius to
Fahrenheit
Fahrenheit to
Celsius
When an infinite
loop occurs
Содержание EL-9450
Страница 1: ...EL 9450 MODEL GRAPHING CALCULATOR OPERATION MANUAL ...
Страница 7: ...vi ...
Страница 197: ......
Страница 199: ...SHARP CORPORATION 02EGK TINSE0465THZZ PRINTED IN CHINA IMPRIMÉ EN CHINE IMPRESO EN CHINA ...