Online Java Compiler By
JavaTpoint.com
public class SqrtExample3 { public static void main(String[] args) { double x = 0.0/0; // Input NaN, Output NaN System.out.println(Math.sqrt(x)); } }
Output