for loop

C++
for(int i = 0; i < some_number; i++){
  	//inside loop do whatever you want
}var i = 2;
var len = cars.length;
var text = "";
for (; i < len; i++) { 
	// this is a comment
    text += cars[i] + "<br>";

 } for x in range(6):
	print(x)
else:
	print("Finally finished!") var i;
for (i = 0; i < cars.length; i++) {
  text += cars[i] + "<br>";
}int values[] = {1,2,3,4};
for(int i = 0; i < values.length; i++)
{
 	System.out.println(values[i]); 
}String[] cars = {"Volvo", "BMW", "Ford", "Mazda"};
for (String i : cars) {
  System.out.println(i);
}
Source

Also in C++: