{
  "format": "tokbit",
  "version": 1,
  "name": "Positive or negative",
  "main": [
    {
      "id": "u1",
      "kind": "declare",
      "name": "n",
      "type": "int"
    },
    {
      "id": "u2",
      "kind": "input",
      "target": "n",
      "prompt": "Enter a whole number:"
    },
    {
      "id": "u3",
      "kind": "if",
      "condition": "n > 0",
      "then": [
        {
          "id": "u4",
          "kind": "output",
          "values": "n, \"is positive\""
        }
      ],
      "else": [
        {
          "id": "u5",
          "kind": "if",
          "condition": "n < 0",
          "then": [
            {
              "id": "u6",
              "kind": "output",
              "values": "n, \"is negative\""
            }
          ],
          "else": [
            {
              "id": "u7",
              "kind": "output",
              "values": "\"It is zero.\""
            }
          ],
          "comment": "If it is not positive, it is negative or zero."
        }
      ]
    }
  ],
  "functions": [],
  "comment": "Solution to the task “Positive, negative, zero”: Instead of even / odd the program tells whether the number is positive, negative or zero. How many conditions do you need?",
  "screen": "fit"
}
