+ 1

Where is the mistake

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); double pi = 3.14; int radius= Scanner.next int; double d=2*pi; double p=d*radius; System .out.println (p); //your code goes here; } }

23rd Nov 2021, 1:31 PM
Achraf Soua
1 Odpowiedź
+ 6
Use scanner.nextInt() Instead of using Scanner.next int
23rd Nov 2021, 1:41 PM
Pariket Thakur
Pariket Thakur - avatar