Celsius to Fahrenheit

Report a typo

Write a program that reads a temperature in Celsius (°C) and shows its equivalent in Fahrenheit temperature (°F).

Use this formula:

fahrenheit = celsius * 1.8 + 32

Sample Input 1:

32.9

Sample Output 1:

91.22

Sample Input 2:

0

Sample Output 2:

32.0
Write a program in Kotlin
fun main() {
// put your code here
}
___

Create a free account to access the full topic