Christina
0
Q:

math sqrt java

import java.lang.Math;

double x = Math.sqrt(9);
4
// Java program to demonstrate working 
// of java.lang.Math.sqrt() method 
import java.lang.Math; 
  
class Gfg { 
  
    // driver code 
    public static void main(String args[]) 
    { 
        double a = 30; 
  
        System.out.println(Math.sqrt(a)); 
  
        a = 45; 
  
        System.out.println(Math.sqrt(a)); 
  
        a = 60; 
  
        System.out.println(Math.sqrt(a)); 
  
        a = 90; 
  
        System.out.println(Math.sqrt(a)); 
    } 
} 
3

New to Communities?

Join the community