Temperature Convert
Python
Easy
2 views
Problem Description
Celsius value C is provided. Convert to Fahrenheit F = C*9/5 + 32 and output with 2 decimals.
Input Format
One number C.
Output Format
One number F with 2 decimals.
Official Solution
import sys
s=sys.stdin.read().strip()
if not s: sys.exit(0)
C=float(s)
F=C*9.0/5.0+32.0
sys.stdout.write(f"{F:.2f}")
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!