Celsius to Fahrenheit
Easy
basics
math
Description
Convert a temperature from Celsius (`C`) to Fahrenheit (`F`). Formula: $F = C \times 9/5 + 32$. Return the result as an integer.
Examples
Example:
Input: C = 20
Output: 68
Explanation: 20 * 9/5 + 32 = 36 + 32 = 68.
Constraints
- Input C is an integer.
- Output F must be an integer (truncate/floor if necessary, or let Python handle it).
Loading...
Test Case 1
Input: 20
Output: 68
Test Case 2
Input: 0
Output: 32
Test Case 3
Input: 100
Output: 212
