summaryrefslogtreecommitdiff
path: root/mario.c
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-01 06:30:18 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-01 06:30:18 +0000
commit5e4354535a026a309f13a26d240d847708c5c27e (patch)
treefc69201c1a4e963404bb7516e961f14961b810d7 /mario.c
parent6142ce60dadd09a78e027ede6fedaa738ebeb14a (diff)
Thu, Nov 30, 2023, 10:30 PM -08:00
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("#");