- 2
Take the integer temperature in Celsius as input and output "Boiling" if the temperature is above or equal to 100. Write pgrm ..
I passed test 2 ,3and 4 but 1 and 5 is not coming correct. How to solve it ..
5 ответов
+ 3
It just need one if block
Condition, temperature >= 100
show your code, let's see why it's not working
+ 2
temp = int(100)
if temp>=100:
print("Boiling")
temp= int(99)
if temp>=100:
print("Boiling").
0
G'day NonStop CODING that is only true for standard atmospheric conditions at sea level.
If you decrease atmospheric pressure then the boiling point for H20 becomes less than 100°c. Eg at +305m (1000feet) it is 98.9°c.
That doesn't seem like much, but from practical experience: an "instant boiling water" company that used a digital controller with a thermocouple sensor and 97+-2° as their setpoint/differential had issues when their unit was installed at 980m elevation. The unit boiled dry and failed. Simple fix, adjust the setpoint a few degrees lower. ☕