Empowering CS learners, aspiring programmers, and startups with AI, Data Science & Programming insights — scaling skills from learning foundations to enterprise-grade solutions.
Mario: 5 hashes in first row, 4 hashes in second row…
#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");
}
}