Is it positive?
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version.
Is it positive?
A number is positive when it is greater than 0. The test n > 0 is already true or false — return it.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
Complete isPositive(int n): return true when n > 0, else false.
Click Run to see the output here.