First of all, I am not very good at programming, and sorry for my bad english. I am having trouble understanding this following C-program. I can see the program consists of a for-loop, but why not use a do- or a while loop? Sorry if this is a stupid question. Thanks for your help.
void opgave_1 (loebsdata2017 *alle_loebsdata2017 ) {
int i = 0;
for (i = 0; i < MAX_RYTTERE; i++) {
if(alle_loebsdata2017[i].rytteralder < 23 &&
strcmp(alle_loebsdata2017[i].nationalitet, "BEL") == 0)
{
printf("%s %s %d %s \n",
alle_loebsdata2017[i].rytternavn,
alle_loebsdata2017[i].rytterhold,
alle_loebsdata2017[i].rytteralder,
alle_loebsdata2017[i].nationalitet);
}
}
}