Kodewick
Start learning →
Starter←→0 / 86

Tall Enough?

#070Starterif (height >= 120)3 min

The rollercoaster takes riders of 120 cm and up. Show Go ahead if they are tall enough and Too short if not. This child is 118 cm, so the answer is Too short.

Should show
Too short
main.cpp
#include <iostream>
using namespace std;

int main() {
    int height = 118;
    // your code here: check whether they reach 120 cm
    return 0;
}
Ctrl + Enter runs too
Result

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