I am looking to create a website which is dynamic, where each page has a question, and depending on the answer, the logic behind the scenes will create an output dependent on the choices made by the user. I have no idea how to achieve this. Please can you help?

Example: “How healthy are you”
1. How many units of alcohol do you drink per week?
2. How much exercise do you do?
3. How much do you eat
Outout: x/100 = “super healthy” or “unhealthy” etc.