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.
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");
}
}
Reply
https://edstem.org/us/courses/176/discussion/1678010/[learn_press_profile]