Computer Science, asked by hazoorbuxgaad772, 5 months ago

python
Write a program using if else (elif when required) that takes input the temperature of a student as a float, prints:
“Normal” when below 99
“Fever” when above 98​

Answers

Answered by ishaanthegreat293
0

Answer:

temp = float(input("Enter the temperature of the student: "))

if temp <= 99:

  print("Normal")

else:

  print("Fever")

_____________________

You can also add an elif statement if required like:

temp = float(input("Enter the temperature of the student: "))

if temp <= 99:

  print("Normal")

elif temp > 99:

  print("Fever")

Similar questions