summaryrefslogtreecommitdiff
path: root/mario.c
blob: 7cf6ce9e1fc08112cef51f1dced6f06e963f5e8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>
#include <cs50.h>

int main(void)
{
    //Get Size of Grid
    int n;
    do {
        n = get_int("Size: ");
    } while (n < 1);

    //Print Grid
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < n; j++) {
            printf("#");
        }
        printf("\n");
    }
}