Kodewick
Start learning →
Starter←→0 / 70

Tall enough?

#010StarterConditions2 min

At the roller coaster there is a height bar: you can ride if you are 120 cm or taller. Write can_ride(height) to return true if you can ride and false if not. Exactly 120 is fine.

Examples
can_ride(135)→True
can_ride(120)→True
The functionbool can_ride(int height)
main.c
#include <stdbool.h>

bool can_ride(int height) {
    // your code here: if height is at least 120, return true
    return false;
}
Ctrl + Enter runs too
Result

Run tries the examples. When they look right, Submit.