I've looked over some of the other threads and I am still puzzled.
I keep getting an error: expected expression for line 21:5 (the ending curly bracket for my do loop). Here's my code so far:
#include <stdio.h>
#include <cs50.h>
int rows;
int main(void)
{
do
{
printf("Height: ")
rows = GetInt()
}
while (rows > 23 || rows < 1);
int hash = 2;
int spaces = 22;
int x;
for (x = 0; x < rows; x++);
{
printf(" " * spaces, int);
printf("#" * hash, int);
printf("\n");
// subtract 1 space and hash from each line after initial line
}
}
I am still wrestling with the code to build the pyramid so no questions there. Any thoughts about that curly bracket issue? Thanks!