Question: what is the difference between selection and iteration logical structures explain with an example?
Answer: Iteration is when we use loops to repeat code in a program. Selection is when we use conditionals (if/else) to execute different blocks of code in a program.