I'm in a beginner class at my high school, and I'm trying to learn programming. I find loops sort of easy to understand, but we're supposed to create a multiplication table using a nested loop and I just can't get it. Help! Thank you!
Explaining "Nested Loops" to Someone Without a Computer's Background
Can someone please explain nested loops / loops in general, like I'm five? (C++)
Nested for loops are really difficult for me to understand. Can anyone help me out?
what practical reasons would I use a nested for loop for?
Does anyone know of a good example to explain Nested Loops to someone without a Computer's Background? I was thinking of an example where someone makes a checklist/decision tree for picking an ideal watermelon at a grocery store.
For example:
- Make sure the watermelon weighs more than 1 KG
- If YES, Make sure the watermelon is ripe
- If YES, Make sure the watermelon has no blemishes and dents
- If YES, Make sure the watermelon costs less than $10
- If YES, then buy.
Is this a good example of a Nested Loop - can someone please comment on this?
Thanks!