degrees in Celsius, a non-negative number with at most two decimal places. Convert it to Kelvin and to Fahrenheit and return the list [kelvin, fahrenheit].
The conversion formulas are:
- kelvin = degrees + 273.15
- fahrenheit = degrees · 1.8 + 32
An answer is accepted if each number is within 10⁻⁵ of the exact value.degrees=25.0 → [298.15, 77.0]
25 + 273.15 = 298.15 K; 25 · 1.8 + 32 = 77 °F.
degrees=37.5 → [310.65, 99.5]
37.5 + 273.15 = 310.65 K; 37.5 · 1.8 + 32 = 99.5 °F.
degrees has at most two decimal placesdegrees=25.0
[298.15, 77.0]
Run checks the first 3 tests in your browser. Submit checks all 36 tests on the server, hidden ones included.