/*
 * Heron-Verfahren zur Berechnung der Quadratwurzel
 * Version 1
 * 2019-07-08, Andre M. Maier
 */
import java.util.Scanner;
public class Heron {
 public static void main(String args[])
 {
   System.out.printf("Radikand eingeben: x = ");
   double x;
   Scanner s = new Scanner(System.in);
   x = s.nextInt();
   double t=x/2;
   while(t!=x/t) 
   {
      System.out.println("t=" + t);
      t = ( t + (x/t) ) / 2;
   }
 }
}
