summaryrefslogtreecommitdiff
path: root/wk1/pset1/mario-more
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-04 03:24:45 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-04 03:24:45 +0000
commit9d7bf121161dad25f78b2b0883d0836a02c219de (patch)
tree029d31bee67b583b3c8f0f8edf111ed8aa80f0cf /wk1/pset1/mario-more
parent197319e1d5d67c82c4caa794964ff1a3d3494eac (diff)
Sun, Dec 3, 2023, 7:24 PM -08:00
Diffstat (limited to 'wk1/pset1/mario-more')
-rw-r--r--wk1/pset1/mario-more/mario.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/wk1/pset1/mario-more/mario.c b/wk1/pset1/mario-more/mario.c
index e92a7ce..fd3ec81 100644
--- a/wk1/pset1/mario-more/mario.c
+++ b/wk1/pset1/mario-more/mario.c
@@ -33,7 +33,7 @@ void print_grid(size)
{
if ((size - (j + i)) > 1)
{
- printf("!");
+ printf(" ");
}
else
{
@@ -43,13 +43,13 @@ void print_grid(size)
printf(" ");
for (int j = size; j > 0; j--)
{
- if ((size - (j + i)) > 1)
+ if ((size - (j + i)) > 0)
{
- printf("#");
+ printf(" ");
}
else
{
- printf("!");
+ printf("#");
}
}
}