Loop пропускает оператор scanf после первого раза

Вот код для main ():

int main (void)
{
float acres[20];
float bushels[20];
float cost = 0;
float pricePerBushel = 0;
float totalAcres = 0;
char choice;
int counter = 0;

for(counter = 0; counter < 20; counter++)
{   
    printf("would you like to enter another farm? "); 

    scanf("%c", &choice);

    if (choice == 'n')
    {
        printf("in break ");
        break;
    }

    printf("enter the number of acres: ");
    scanf("%f", &acres[counter]);

    printf("enter the number of bushels: ");
    scanf("%f", &bushels[counter]);

}


return 0;
}

Каждый раз, когда программа запускается через первый scanf, работает нормально, но при втором проходе через цикл scanf для ввода символа не запускается.

Ответы на вопрос(1)

Ваш ответ на вопрос