This commit is contained in:
Samuel Vermeulen 2023-01-05 00:26:29 +01:00
parent d0bbde4a39
commit ed86d20192

View File

@ -1,10 +1,15 @@
nbMesures = int(input())
tempMin = int(input())
tempMax = int(input())
temp = int(input())
temp = 0
tempValid = True
while temp <= tempMax and temp >= tempMin:
print("Rien à signaler")
temp = int(input())
while temp <= nbMesures and tempValid:
temperature = int(input())
tempValid = (tempMin <= temperature and temperature <= tempMax)
if tempValid:
print("Rien à signaler")
else:
print("Alerte !!")
print("Alerte !!")
temp +=1