- 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; } }

29th Jun 2021, 9:15 PM
Mary
1 Odpowiedź
+ 4
Is there a question here? If you want PI in Java use; Math.PI (No import needed)
29th Jun 2021, 9:59 PM
ChaoticDawg
ChaoticDawg - avatar