cs50/src6/1/mario1.c

22 lines
297 B
C

// Prints a column of height n
#include <cs50.h>
#include <stdio.h>
int main(void)
{
// Get height of column
int n;
do
{
n = get_int("Height: ");
}
while (n < 1);
// Print column of bricks
for (int i = 0; i < n; i++)
{
printf("#\n");
}
}