Count to Ten

In this exercise we will model a simple counter.

Variables

The spec should contain a single variable i.

Initial State

Initially the value of i should be 0.

Transitions

  • If the value of i is less than 10 then transition i to i + 1.
  • If the value of i is 10 then reset i to 0.

count-to-ten
Ready
⌘↵ to submit