w3schools for loops code example Example: for loop for(int i = 0; i < some_number; i++){ //inside loop do whatever you want }