src/main/java/com/mycompany/app/dsa/chapterTwo/Progression.java
public void printProgression(int n){
        System.out.print(nextValue()); //print first value without leading space
        for(int j = 1; j < n; j++){
            System.out.print(" " + nextValue()); //print leading space before others
            System.out.println(); // end the line
        }
    }
/**Prints the next n values of the progression, seperated by spaces */
Prints the next n values of the progression, seperated by spaces
Prints the next n values of the progression seperated by spaces
public void printProgression(int n){
        System.out.print(nextValue()); 
        for(int j = 1; j < n; j++){
            System.out.print(" " + nextValue()); 
            System.out.println(); 
        }
    }
public void printProgression ( int n ) { System . out . print ( nextValue ( ) ) ; for ( int j = 1 ; j < n ; j ++ ) { System . out . print ( " " + nextValue ( ) ) ; System . out . println ( ) ; } }
Prints the next n values of the progression, seperated by spaces
Prints the next n values of the progression seperated by spaces
//print first value without leading space //print leading space before others // end the line