Read a temperature in Celsius (may be decimal) and print it in Fahrenheit, rounded to 1 decimal place. Formula: F = C × 9/5 + 32.
Input: one number. Output: the Fahrenheit value with exactly 1 decimal (use toFixed(1)).
Your program reads from stdin and prints to stdout.
Example 1
Input: 0
Output: 32.0
Hints
Read a temperature in Celsius (may be decimal) and print it in Fahrenheit, rounded to 1 decimal place. Formula: F = C × 9/5 + 32.
Input: one number. Output: the Fahrenheit value with exactly 1 decimal (use toFixed(1)).
Your program reads from stdin and prints to stdout.
Example 1
Input: 0
Output: 32.0
Hints