19. Weather Report: Celsius to Fahrenheit

Acceptance — 0 accepted 0 submissions

Easy
BasicsMath
No companies listed
Your cousin in the USA keeps asking about the weather in Chennai, but they only understand Fahrenheit.

Convert the temperature C (in Celsius) to Fahrenheit using F = C × 9 / 5 + 32.

Input Format
A single integer C.

Output Format
Print F rounded to exactly 2 decimal places.

Constraints
• -100 ≤ C ≤ 100

Example 1

Input
37
Output
98.60

Explanation 37 × 9 / 5 + 32 = 98.60, normal body temperature.

Example 2

Input
0
Output
32.00

Explanation Water freezes at 0 °C, which is 32.00 °F.

Example 3

Input
-40
Output
-40.00

Explanation -40 is the special point where both scales are equal.

Acceptance —
Accepted 0
Submissions 0
Auto-save
Saved Ln 1, Col 1
Submit a solution to see its status here.
Input
Expected Output
98.60
No results yet
Run your code to test it against the sample cases.
Problem List