Constant (E) in Java

The double value that is closer than any other to e, the base of the natural logarithms.

Value:2.718281828459045

Syntax:

Math.E = > It return 2.718281828459045

Approach

Java


public class ValueofE {
    public static void main(String[] args) {

        System.out.println(Math.E);

    }
}


No comments:

Post a Comment