
public class BasicForLoop {
  
  
  public static void main(String[] args) { 
    
    for(int count = 1; count<=10; count++){
      System.out.println(count+" Hello World");
    }
    System.out.println();
    /*
    for(initialization step ; boolean test ; update step) {
      
     //statements to be executed repeatedly 
    }
    
    1. initialization step (happens upon entry to the loop, only once)
    2. check the boolean test. if it's false, stop the loop
    3. run the body of the loop.
    4. run the update
    5. go back to step 2. 
    */
    
    for(int count=0; count<10; count++) {
      System.out.println((count+ 1) + " Hello World");
    }
  }
  
  
  
}
