17 lines
277 B
C
17 lines
277 B
C
// Prints a 3-by-3 grid of bricks with nested loops using a constant
|
|
|
|
#include <stdio.h>
|
|
|
|
int main(void)
|
|
{
|
|
const int n = 3;
|
|
for (int i = 0; i < n; i++)
|
|
{
|
|
for (int j = 0; j < n; j++)
|
|
{
|
|
printf("#");
|
|
}
|
|
printf("\n");
|
|
}
|
|
}
|