Assignemnt #113

Code

          /// Name: Holden Ganch
          /// Period: 7
          /// Program Name:  sixtieth Program
          /// File Name: EnterPIN.java
          /// Date Finished: 10/5/2015


    import java.util.Scanner;
public class Odo
{
	public static void main( String[] args ) throws Exception
	{
        Scanner kb = new Scanner (System.in);
        
        System.out.print("Which base (2-10): ");
        int n = kb.nextInt();
        
		for ( int thous=0; thous< n; thous++ )
		
			for ( int hund=0; hund< n; hund++ )
			{
				for ( int tens=0; tens< n; tens++ )
				{
					for ( int ones=0; ones< n; ones++ )
					{
						System.out.print( " " + thous + "" + hund + "" + tens + "" + ones + "\r" );
						Thread.sleep(10);
					}
				}
			}
		

		System.out.println();
	} // deleting the brackets don't keep it from working
}




    

Picture of the output

Assignment 113