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