summaryrefslogtreecommitdiff
path: root/wk1/pset1
diff options
context:
space:
mode:
Diffstat (limited to 'wk1/pset1')
-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("#");
}
}
}