Write a program to input temperature of a person in Degrees. Convert it to Fahrenheit using the formula:
℉=℃ × 9/5 + 32
After converting, check if the Fahrenheit temperature is more than 102, then print go to doctor. If temperature is between 99 and 101.9, print take rest.
If less than 99, print you are fine.
Answers
Answered by
4
The following codes have been written using Python.
Once the temperature (t) has been entered, the conversion into Fahrenheit is done and the checking is done using conditional statements. Appropriate print statements as per the question are passed according to each individual condition. Conditional statements are useful in checking for certain requirements for the program to proceed accordingly.
Similar questions