Assignemnt #116

Code

/// Name: Connor Siri
/// Period: 7
/// Program Name: Odo
/// File Name: Odo.java
/// Date Finished: 2/29/2016
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

Assignment5.html