Kodewick
Commencer à apprendre →
Débutant←→0 / 70

Assez grand ?

#010Débutantif (height >= 120)2 min

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.

Exemples
can_ride(135)→True
can_ride(120)→True
La fonctionbool can_ride(int height)
main.c
#include <stdbool.h>

bool can_ride(int height) {
    // ton code ici: si height vaut au moins 120, renvoie true
    return false;
}
Ctrl + Entrée lance aussi le code
Résultat

Exécuter teste les exemples. Quand ils sont bons, appuie sur Envoyer.