Categorizing temperature in Fahrenheit

Report a typo

Write a program that reads a temperature in Fahrenheit from the input and prints 'High temperature' if the temperature is above 85, 'Low temperature' if it's below 50, and 'Normal temperature' otherwise.

Sample Input 1:

90

Sample Output 1:

High temperature

Sample Input 2:

40

Sample Output 2:

Low temperature
Write a program in Kotlin
import java.util.*

fun main(args: Array<String>) {
val scan = Scanner(System.`in`)

// input temperature in Fahrenheit
val temperature: Int = scan.nextLine().trim().toInt()

// your code goes here


}

Create a free account to access the full topic