blob: 3db9aae2c060ae386ba31e75a78075c7073d6ee5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
' Challenge 011
'
' Challenge #1
' Write a script that computes the equal point in the Fahrenheit and Celsius
' scales, knowing that the freezing point of water is 32oF and 0oC, and that
' the boiling point of water is 212oF and 100oC. This challenge was proposed
' by Laurent Rosenfeld.
' F = (C * 9/5) + 32
' F = C = x
' => x = (x * 9/5) + 32
' <=> x * (1 - 9/5) = 32
' <=> x = 32 / (1 - 9/5)
print using "###.#"; 32 / (1 - 9/5)
|