Temperature conversion: Difference between revisions
Content added Content deleted
m (→{{header|Plain English}}: numbers are implicitly converted to fractions) |
(add tinybasic) |
||
Line 643: | Line 643: | ||
130 PRINT K*1.8-459.67;TAB(10);"Degrees Fahrenheit" |
130 PRINT K*1.8-459.67;TAB(10);"Degrees Fahrenheit" |
||
140 PRINT K*1.8;TAB(10);"Degrees Rankine"</lang> |
140 PRINT K*1.8;TAB(10);"Degrees Rankine"</lang> |
||
==={{Header|Tiny BASIC}}=== |
|||
<lang tiny basic> |
|||
PRINT "Temperature in Kelvin?" |
|||
INPUT K |
|||
LET C = K + 273 |
|||
LET R = (9*K)/5 |
|||
LET F = R + 460 |
|||
PRINT C," Celsius" |
|||
PRINT F," Fahrenheit" |
|||
PRINT R," Rankine"</lang> |
|||
==={{header|Sinclair ZX81 BASIC}}=== |
==={{header|Sinclair ZX81 BASIC}}=== |