+ 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; } }
1 Odpowiedź
+ 6
Use
scanner.nextInt()
Instead of using
Scanner.next int