zyulfi

Temperature_advisor

May 14th, 2025 (edited)
601
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | Source Code | 0 0
  1. # 4.Температурен съветник
  2. # Въведете температура (цяло число):
  3.     # Под 0 → "Много студено"
  4.     # От 0 до 20 → "Хладно"
  5.     # Над 20 до 35 → "Топло"
  6.     # Над 35 → "Горещо!"
  7.  
  8. temperature = int(input("Please enter an integer for temperature: "))
  9.  
  10. if temperature < 0:
  11.     print("Very cold!")
  12. elif temperature <= 20:
  13.     print("Cool!")
  14. elif temperature <= 35:
  15.     print("Warm!")
  16. else:
  17.     print("Hot!")
Advertisement
Add Comment
Please, Sign In to add comment