SimCom  the Simple Computer

3
Still with me, huh? Ok ... how about you teach SimCom to count? When you press RUN we should see 1 then 2 then 3 and so on in the Output box. In our language, the steps would be something like this:
  1. Start with 1
  2. Output
  3. Add 1
  4. Go to step 2
Away you go ... good luck! Check.

Let's try for the Triangular Numbers:
1
3
6
10
15
  1. Put a one in box A
  2. Put a two in box B
  3. Output box A
  4. Add box B to box A
  5. Add one to box B
  6. Go to step 3
Check.

[Contents] [Previous] [Next] [SimCom] [Help]