Is x a number and positive?
Exercise Type: Implementation
Instructions
We have one variable, which can be anything:
x <- -5.4
Write a bit of code that prints to the console
- Whether the input is numeric or not, and …
- … if it is numeric, whether it is (a) positive or (b) lower than or equal to 0!