Temperature Converter

Temperature often needs to be converted from one scale to another, especially in weather apps. Write a function to_fahrenheit that takes a temperature celsius in degrees Celsius. Convert it using the formula F = C * 9/5 + 32 and return the result rounded to the nearest whole number.

Примеры

Ввод
0
Вывод
32
Ввод
100
Вывод
212
Ввод
37
Вывод
99

Нужно реализовать

def to_fahrenheit(celsius: float) -> int:

Теги

math
PostgreSQLv16

Qui apparirà il risultato dell'esecuzione del codice

Visible tests
1
Input
0
Expected32
2
Input
100
Expected212
3
Input
37
Expected99
4
Input
-40
Expected-40
5
Input
25
Expected77
6
Input
-1
Expected30
Focus radio
Paused · SomaFM · Fluid