import java.io.*;
import java.util.*;
/************************************************
* This program finds the square root of numbers that are input
*
* @author Andrew Cox
* @version 1/22/07
* ***********************************************/
// Date: 1/22/07
// Section: 1


public class IO_cox2ar_Rooter
{
    public static void main(String[] args)
    {
       double          value, result;       
       PrintWriter     screen;       
       Scanner         keyboard;
       
       screen   = new PrintWriter(System.out);       
       keyboard = new Scanner(System.in);

   	    
		 screen.println("Enter a number: "); 
		 screen.flush();   
       
       
       while (keyboard.hasNext())
       {
          value = keyboard.nextDouble();
          result = Math.sqrt(value);

          screen.printf("The square root of " + value + " is " + result);
          screen.flush();
          
          screen.println("Enter a number: ");       
        	 screen.flush();
       }

       screen.println("Done.\n");       
       screen.flush();
    }
    
}
