diff options
author | June McEnroe <june@causal.agency> | 2021-12-13 11:10:35 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-12-13 11:10:35 -0500 |
commit | 99818fe8661f3d031bc81afeb8235f172aff8d8f (patch) | |
tree | f9253d1d8b0f486663cd09769285701d0a6e5578 /2021 | |
parent | Solve day 13 part 1 (diff) | |
download | aoc-99818fe8661f3d031bc81afeb8235f172aff8d8f.tar.gz aoc-99818fe8661f3d031bc81afeb8235f172aff8d8f.zip |
Solve day 13 part 2
Diffstat (limited to '2021')
-rw-r--r-- | 2021/day13.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/2021/day13.c b/2021/day13.c index 9635616..3e60177 100644 --- a/2021/day13.c +++ b/2021/day13.c @@ -47,4 +47,10 @@ int main(void) { first = 0; } } + for (int y = 0; y < h; ++y) { + for (int x = 0; x < w; ++x) { + printf("%c", (paper[y][x] ? '#' : '.')); + } + printf("\n"); + } } |