The double value that is closer than any other to pi, the ratio of the circumference of a circle to its diameter (i.e 2*π*r/2*r).
Value: 3.141592653589793
Syntax:
Math.PI = > It returns 3.141592653589793
Approach
Java
public class ValueofPI {public static void main(String[] args) {System.out.println(Math.PI);}}
No comments:
Post a Comment