Other Languages

Java Basics, Loops

Enhanced For Loop, index not needed
ForEach, loop over a Collection

for (int no : N)
N.forEach(x -> System.out.println(x))
Loops, Labels

Python Language, While

while True:
    line = input('>')
    if (line == 'quit'):
        break
        print(line)

print('Done')
Loops

Javascript Fundamentals, Loops

Labels, identified with a colon before the loop
Switch, value must be same type to match
 
outer: while(true)
  inner: for(let i=0 ... )
    if (i == 5)
      break outer
Loops, Labels



Php

Php Basics, Control Structures

Switch evaluates once, then compares
Break parameter to exit nested loops

for ($i ... )
  for ($j ... )
    break 2; 
Loops