Temperature conversion: Difference between revisions
Content added Content deleted
(→{{header|Vlang}}: Rename "Vlang" in "V (Vlang)") |
Basicgames (talk | contribs) |
||
Line 894: | Line 894: | ||
PRINT F," Fahrenheit" |
PRINT F," Fahrenheit" |
||
PRINT R," Rankine"</syntaxhighlight> |
PRINT R," Rankine"</syntaxhighlight> |
||
=={{header|Tiny Craft Basic}}== |
|||
<syntaxhighlight lang="basic">10 cls |
|||
20 input "Temperature in Kelvin: ", k |
|||
30 let c = k + 273 |
|||
40 let r = ( 9 * k ) / 5 |
|||
50 let f = r + 460 |
|||
60 print c, " Celsius" |
|||
70 print f, " Fahrenheit" |
|||
80 print r, " Rankine" |
|||
90 shell "pause"</syntaxhighlight> |
|||
=={{header|BASIC256}}== |
=={{header|BASIC256}}== |