Devant le grand huit, il y a une toise : tu peux monter si tu mesures 120 cm ou plus. Écris can_ride(height), qui renvoie true si tu peux monter et false sinon. Pile 120, ça passe.
can_ride(135)→Truecan_ride(120)→Truebool can_ride(int height)#include <stdbool.h>
bool can_ride(int height) {
// ton code ici: si height vaut au moins 120, renvoie true
return false;
}
Exécuter teste les exemples. Quand ils sont bons, appuie sur Envoyer.