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

  1. Whether the input is numeric or not, and …
  2. … if it is numeric, whether it is (a) positive or (b) lower than or equal to 0!