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

12th Jan 2022, 1:44 PM
Abdalla Elmetwalli Sewilam
1 Answer
+ 6
int r = scanner.nextInt() It's a capital `i` not small `L` in nextInt()
12th Jan 2022, 1:51 PM
Simba
Simba - avatar