**Question:**

why doesn’t this work (line 327)

**Repl link:**

Main.java - Geometry Calculator (Fourmulas) - Replit

```
code snippet
public static double saOfCone(int x) {
out.println("\n The surface area of a cone is pi*r^2*pi*r*sqrt(r^2+h^2). Very complicated!");
out.println(" Please enter the radius of the cone: ");
double radius = input.nextDouble();
out.println(" Please enter the height of the cone: ");
double height = input.nextDouble();
double y = radius * radius + height * height;
double surfaceArea = Math.PI * radius * radius * Math.PI * radius * sqrt(y);
return surfaceArea;
}
```