RosettaCodeData/Task/Temperature-conversion/Phix/temperature-conversion.phix
2016-12-05 23:44:36 +01:00

3 lines
249 B
Text

atom K = prompt_number("Enter temperature in Kelvin >=0: ",{0,1e307})
printf(1," Kelvin: %5.2f\n Celsius: %5.2f\nFahrenheit: %5.2f\n Rankine: %5.2f\n\n",
{K, K-273.15, K*1.8-459.67, K*1.8})