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
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
Computer Science,
3 months ago
English,
3 months ago
Physics,
3 months ago
Physics,
1 year ago
Physics,
1 year ago