summaryrefslogtreecommitdiff
path: root/mario.c
diff options
context:
space:
mode:
Diffstat (limited to 'mario.c')
-rw-r--r--mario.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/mario.c b/mario.c
index a9ece2a..7cf6ce9 100644
--- a/mario.c
+++ b/mario.c
@@ -3,12 +3,13 @@
int main(void)
{
+ //Get Size of Grid
int n;
- do
- {
+ do {
n = get_int("Size: ");
- }
- while (n < 1);
+ } while (n < 1);
+
+ //Print Grid
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
printf("#");