Home Java Math Function using Java

Math Function using Java

25 second read
0
0
450

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

    Master React Inventory Management System Development

    Introduction to Inventory Management Systems In today’s fast-paced digital environme…