// program to calculate logarithms
// hussein suleman
// 29 march 2004

public class problem8
{
	public static void main (String [] args)
	   throws java.io.IOException
	{		
		// create new math object
		LogFinder lf = new LogFinder ();
		
		// read in a number from the keyboard
		int number = Keyboard.readInt ("Enter a number : ");		
		
        while ( number != 0 )
        {
       	   // calculate logarithm
    	   int log = lf.approximateLog (number, 10);
           // output logarithm
    	   System.out.println ("The log is : " + log);
    	   
    	   // get another number
    	   number = Keyboard.readInt ("Enter a number : ");
    	}
	}
}

