Assignment #112 and Odometer Loops

Code

    /// Name: Lauren Baird
    /// Period: 7
    /// Program Name: Odometer Loops
    /// File Name: OdometerLoops.java
    /// Date Finished: 1/26/2016
    
    import java.util.Scanner;
    
    public class OdometerLoops
    {
    	public static void main( String[] args ) throws Exception
    	{
          Scanner keyboard = new Scanner(System.in);
            
          System.out.println();
          System.out.print( "Which base (2-10): " );
          int b = keyboard.nextInt();
          
    		  for ( int thous=0; thous<'b'; thous++ )
    		
    			 for ( int hund=0; hund<'b'; hund++ )
    			   
    				 for ( int tens=0; tens<'b'; tens++ )
    				  
    					 for ( int ones=0; ones<'b'; ones++ )
    					    
    						  System.out.print( " " + thous + "" + hund + "" + tens + "" + ones + "\r" );
    						  Thread.sleep(10);
  
  
    		    System.out.println();
            // The program will still work without the braces
    	}
    }
      
    

Picture of the output

Assignment #112 Assignment #112