Recently I stuck in this particular Pset. It appears I followed all the instructions, but when I try to run this code it simply doesn't print anything. Any suggestions? Thanks, here's my cOdE:
include include
int main(void) {
int height;
int row;
int hash;
int space;
do
{
printf("Gimme the height of the pyramid. Choose numbers between 0 to 23\n");
height = GetInt();
}
while (height < 0 || height > 23);
for (row = 0; row < height; row++) // master loop
{
for (space = height - 1; space < height; space--) // it prints infinite "_"
{
printf("_");
}
for (hash = height + 1; hash > height; hash++)
{
printf("#");
}
}
printf("\n");
}