Kodewick
Start learning →
Starter←→0 / 70

Coaster height

#011StarterConditions2 min

The roller coaster needs riders to be at least 120 cm tall. Write CanRide(height): return true if the height (in cm) is enough, false if not. Exactly 120 is fine.

Examples
CanRide(130)→True
CanRide(119)→False
The functionfunc CanRide(height int) bool
main.go
package main

func CanRide(height int) bool {
	// your code here: tall enough (120 or more)? return true
	return false
}
Ctrl + Enter runs too
Result

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