A **loop** is a sequence of statements which is specified once but which may be carried out several times in succession.
44
votes
6answers
8k views
Who created the idea(s) of the first loop constructs?
while (1) {
if (1+1==2) {
print "Yes, you paid attention in Preschool!";
} else {
print "Wait... I thought 1+1=2";
}
}
As a developer, we all have to use ...
16
votes
4answers
3k views
Why are nested loops considered bad practice?
My lecturer mentioned today that it was possible to "label" loops in Java so that you could refer to them when dealing with nested loops. So I went home and looked up the feature as I didn't know ...