You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
290 B
14 lines
290 B
nbAdeviner = int(input())
|
|
nbChoisi = 0
|
|
nbEssai = 0
|
|
|
|
while nbAdeviner != nbChoisi:
|
|
nbChoisi = int(input())
|
|
if nbChoisi < nbAdeviner:
|
|
print("C'est plus")
|
|
nbEssai +=1
|
|
elif nbChoisi > nbAdeviner:
|
|
print("C'est moins")
|
|
nbEssai +=1
|
|
|
|
print("Nombre d'essais nécessaires :", nbEssai + 1)
|