Ruler

JavaScript

Ending Condition:

Left end choice: Right end choice: