{
  "format": "tokbit",
  "version": 1,
  "name": "Four operations",
  "main": [
    {
      "id": "u1",
      "kind": "declare",
      "name": "a",
      "type": "int"
    },
    {
      "id": "u2",
      "kind": "declare",
      "name": "b",
      "type": "int"
    },
    {
      "id": "u3",
      "kind": "input",
      "target": "a",
      "prompt": "First number:"
    },
    {
      "id": "u4",
      "kind": "input",
      "target": "b",
      "prompt": "Second number:"
    },
    {
      "id": "u5",
      "kind": "output",
      "values": "\"The sum is\", a + b"
    },
    {
      "id": "u6",
      "kind": "output",
      "values": "\"The difference is\", a - b"
    },
    {
      "id": "u7",
      "kind": "output",
      "values": "\"The product is\", a * b"
    },
    {
      "id": "u8",
      "kind": "if",
      "condition": "b == 0",
      "then": [
        {
          "id": "u9",
          "kind": "output",
          "values": "\"You can't divide by zero.\""
        }
      ],
      "else": [
        {
          "id": "u10",
          "kind": "output",
          "values": "\"The quotient is\", a / b"
        }
      ],
      "comment": "Dividing by zero would stop with an error."
    }
  ],
  "functions": [],
  "comment": "Solution to the task “All four operations”: Also print the difference, product and quotient. When dividing by zero, say it is not possible instead of an error.",
  "screen": "fit"
}
