Home Java Math Function using Java

Math Function using Java

25 second read
0
0
467

Assume that we have to compute and print the square root of the number.

public class JavaEx {
    public static void main(String args[])
   {
        double a = 10;
        double b;
        b = Math.sqrt(a);
        System.out.println("b " + b);

    }

}

 

 

    Load More Related Articles
    Load More By admin
    Load More In Java

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    Check Also

    How to Laravel cache clear

    Laravel cache clear , you can use the Artisan command-line tool that comes with Laravel. H…