Home Java Math Function using Java

Math Function using Java

25 second read
0
0
345

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

    Laravel 11 CRUD Application

    In this tutorial will teach Laravel 11 CRUD Application step by step. Laravel  11 CRUD App…