Continuing with my previous post https://edstem.org/us/courses/176/discussion/1676837/, intend to have 5 hashes in the first row, 4 hashes in the second row, and so on.
![](https://static.us.edusercontent.com/files/w9DV37qLi4Qoif9dNiQW4tde)
This is my tentative code:
#include <cs50.h>
#include <stdio.h>
int main(void)
{
int n = get_int("no. of bricks ");
for (int i = 0; i < n; i++)
{
for (int j = n; j < 1 ; j--)
{
printf("#");
}
printf("\n");
}
}
![](https://static.us.edusercontent.com/files/oRXUMGRDcb9VZJUkn3hn5oax)
Reply
https://edstem.org/us/courses/176/discussion/1678010/[learn_press_profile]