@@ -0,0 +1,624 @@
+import java.util.Scanner;%0A%0Apublic class Main %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A        Scanner sc = new Scanner(System.in);%0A%0A        while (true) %7B%0A%0A            double x = sc.nextDouble();%0A            double h = sc.nextDouble();%0A%0A            if (x == 0 && h ==0) %7B%0A                break;%0A            %7D%0A%0A            double heightTriangle = Math.sqrt(x * x / 4 + h * h);%0A            double areaTriangle = x * heightTriangle / 2;%0A%0A            double areaSquare = x * x;%0A%0A            double surfaceAreaCone = areaSquare + areaTriangle * 4.0;%0A%0A            System.out.println(surfaceAreaCone);%0A%0A        %7D%0A%0A    %7D%0A%0A%7D%0A

Create : 0073