This has been asked many times in the forums. There is no "looping" in LimeSurvey.
You will first need to insert a question asking how many people. Then you add as many question groups as the maximum possible people and use conditions/relevance to show the groups depending on the answer to the "how many" question.
Cheers,
Tony Partner Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
there is a good example for that in one of the demo surveys.
Exactly the problem: "How many childs" -> How old is your 1. child? - "How old is your 2. child?"
These example surveys you find in the folder "docs/demosurveys"
Best regards
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless