{
  "format": "tokbit",
  "version": 1,
  "name": "Even and divisible by three",
  "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 % 2 == 0",
      "then": [
        {
          "id": "u4",
          "kind": "output",
          "values": "n, \"is even\""
        }
      ],
      "else": [
        {
          "id": "u5",
          "kind": "output",
          "values": "n, \"is odd\""
        }
      ],
      "comment": "An even number leaves remainder 0 when divided by two."
    },
    {
      "id": "u6",
      "kind": "if",
      "condition": "n % 3 == 0",
      "then": [
        {
          "id": "u7",
          "kind": "output",
          "values": "n, \"is divisible by three\""
        }
      ],
      "else": [
        {
          "id": "u8",
          "kind": "output",
          "values": "n, \"is not divisible by three\""
        }
      ]
    }
  ],
  "functions": [],
  "comment": "Solution to the task “Divisible by three”: The program also says whether the number is divisible by three.",
  "screen": "fit"
}
