Online Java Compiler By
JavaTpoint.com
public class SqrtExample1 { public static void main(String[] args) { double x = 81.0; // Input positive value, Output square root of x System.out.println(Math.sqrt(x)); } }
Output