+ 1
Can anyone help me find the error in this code plz ?
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); double pi = 3.14; //your code goes here int r = scanner.nextlnt(); System.out.println(2*pi*r); } }
1 Answer
+ 6
int r = scanner.nextInt()
It's a capital `i` not small `L` in nextInt()