Kodewick
开始学 →
入门←→0 / 70

够高了吗

#010入门条件约 2 分钟

过山车门口有一根量身高的杆子:120 厘米和更高的人才能坐。写 can_ride(height),能坐返回 true,不能坐返回 false。正好 120 也能坐。

示例
can_ride(135)→True
can_ride(120)→True
函数bool can_ride(int height)
main.c
#include <stdbool.h>

bool can_ride(int height) {
    // 在这里写:身高到了 120,就返回 true
    return false;
}
Ctrl + Enter 也能运行
结果

写好了先点「运行」试试示例,没问题再点「提交」。