/**
* RecursiveShape demonstrates how
* recursion could be combined with a loop.
*
* @author (TK Rogers)
* @version (10-18-13)
*/

public class RecursiveShape {
public static void main ( ) {
System.out.println ( "output = " + numberStack ( 4 ) ) ;

}

public static String numberStack ( int n ) {

if ( n <= 0 ) return "Liar" ;


for ( int x = 0 ; x < n ; x++ ) System.out.print ( " * " ) ;

numberStack ( n -1 ) ;
System.out.println ( ) ;
return "done" ;

}
}