In: Computer Science
2.
“While” loop
Explanation
The while loop will execute while in a true condition.
3.
“Do until”
Explanation
The “do until” loop will execute while in a false condition.
4.
The ‘for’ loop is the loop that sets the variable, the condition, and the iteration all in one statement.
5.
The ‘foreach’ loop is one that is especially powerful the reason is that it iterates through a collection of objects. You can then work with each object in the collection individually.