Fix spacing for code blocks
This commit is contained in:
parent
c448f2771c
commit
1617367464
@ -45,8 +45,11 @@ For the purposes of illustration, here is the same program split into multiple
|
||||
lines:
|
||||
|
||||
1,9,10,3,
|
||||
|
||||
2,3,11,0,
|
||||
|
||||
99,
|
||||
|
||||
30,40,50
|
||||
|
||||
The first four integers, 1,9,10,3, are at positions 0, 1, 2, and 3. Together,
|
||||
@ -58,8 +61,11 @@ this value at the output position; here, the output position (3) is at position
|
||||
3, so it overwrites itself. Afterward, the program looks like this:
|
||||
|
||||
1,9,10,70,
|
||||
|
||||
2,3,11,0,
|
||||
|
||||
99,
|
||||
|
||||
30,40,50
|
||||
|
||||
Step forward 4 positions to reach the next opcode, 2. This opcode works just
|
||||
@ -68,8 +74,11 @@ positions 3 and 11; these positions contain 70 and 50 respectively. Multiplying
|
||||
these produces 3500; this is stored at position 0:
|
||||
|
||||
3500,9,10,70,
|
||||
|
||||
2,3,11,0,
|
||||
|
||||
99,
|
||||
|
||||
30,40,50
|
||||
|
||||
Stepping forward 4 more positions arrives at opcode 99, halting the program.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user