358. Temperature Converter
EasyFormula
Convert a temperature between C (Celsius), F (Fahrenheit) and K (Kelvin). Print the result with 2 decimal places.
Input format
A single line: value from to
Output format
The converted value.
Example 1
Input
100 C F
Output
212.00
Example 2
Input
32 F C
Output
0.00
Constraints
Values within physical range.
Read input from standard input and print the answer to standard output. Your code is judged against 5 test cases, most of them hidden.
Loading the MyLoginn IDE…