0
#include <cs50.h>
#include <stdio.h>
#include <math.h>

int n;
{
do
{
    n = get_int("Height: ");
}
while (n < 1 && n < 8);

for (int i = 0; i < 8; i++)
{
    printf("#");
}
}
0

where is the following structure?

int main(void)
{
    //all the program code
}

This is not a complete program and the compiler doesn't like it.

If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .