From 1617367464a136c783151ce94a8c6ab40f210f61 Mon Sep 17 00:00:00 2001 From: Tobias Eidelpes Date: Sat, 7 Dec 2019 13:01:40 +0100 Subject: [PATCH] Fix spacing for code blocks --- day2/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/day2/README.md b/day2/README.md index 028ceaf..3a10237 100644 --- a/day2/README.md +++ b/day2/README.md @@ -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.