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