- 2
Pi calculation on Java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); double pi = 3.14; } }
1 Answer
+ 4
Is there a question here?
If you want PI in Java use;
Math.PI
(No import needed)