Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,12 @@
|
|||
fromKelvin = function(temp)
|
||||
print temp + " degrees in Kelvin is:"
|
||||
Celsius = temp - 273.15
|
||||
print Celsius + " degrees Celsius"
|
||||
Fahrenheit = round(Celsius * 9/5 + 32,2)
|
||||
print Fahrenheit + " degrees Fahrenheit"
|
||||
Rankine = Fahrenheit + 459.67
|
||||
print Rankine + " degrees Rankine"
|
||||
end function
|
||||
|
||||
temp = input("Enter a temperature in Kelvin: ")
|
||||
fromKelvin temp.val
|
||||
Loading…
Add table
Add a link
Reference in a new issue