What would be a way to write a function that given any positive number the function would return one, but for a negative number or zero it would return zero.
Also what mental process should I go through to approach such a problem?
For example:
f(45) = 1;
f(10) = 1;
f(1) = 1;
f(0) = 0;
f(-3) = 0;