summaryrefslogtreecommitdiff
path: root/wk1/pset1/mario-more/mario.c
diff options
context:
space:
mode:
Diffstat (limited to 'wk1/pset1/mario-more/mario.c')
-rw-r--r--wk1/pset1/mario-more/mario.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/wk1/pset1/mario-more/mario.c b/wk1/pset1/mario-more/mario.c
index 55dc2d3..1b1fc83 100644
--- a/wk1/pset1/mario-more/mario.c
+++ b/wk1/pset1/mario-more/mario.c
@@ -44,13 +44,13 @@ void print_grid(size)
}
else
{
- if ((size - (j + i)))
+ if ((size - (j + i)) > 1) )
{
- printf(" ");
+ printf("#");
}
else
{
- printf("#");
+ printf(" ");
}
}
}