For inside a while condition to check multiple values : What I want to do is to check if an input value is a member, or not, of a struct that is a part of an array. Since I have multiple elements created, based on that struct, I have to search in each one the value of the member I want. If the value is there, the program should countinue, if not, the program must ask the input to search again. I have the do while loop so ask the input once but I dont know "what" to do whith the while condition in order for it to check all values.

    if (numAlunos == 0)
            printf("No data inserted yet!\n");
        else
        {
            do
            {
                printf("Insert the number you want to search:\n");
                number= validar_insert (2150001, 2169999);//check if the input is between this values
    
                        printf("That number doeste exist.\n");
                        printf("Enter another number.\n");
            }while (for (i = 0;  i < numAlunos; i++)//I tried something here
                        numero != vAlunos[i].numero)//didnt work
    
                    for (i = 0;  i < numAlunos; i++)
                    {
                        if (number == vAlunos[i].numero)
                        {
                            printf("\nInsert the new grade you want to assign to %s:\n", vAlunos[i].name);
                            scanf("%i", &newGrade);
                            vAlunos[i].finalGrade= newGrade;
                            printf("%i %i %s \n", vAlunos[i].number, vAlunos[i].finalGrade, vAlunos[i].name);
                        }
                    }
        }