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
Log ind for at se indsendelseshistorik
Log indLog ind for at bruge AI-mentor
Log indVisible tests
1
Input
0Expected
322
Input
100Expected
2123
Input
37Expected
994
Input
-40Expected
-405
Input
25Expected
776
Input
-1Expected
30Focus radio
Paused · SomaFM · Fluid