Asked by Charlie
I need to know what's wrong with my code and it's supposed to be in the Next-Line blocking style.
import java.util.Scanner;
public class AreaOfCircle{public static void main(String[] args)
{
double PI = 3.14159;double get_this;
double v;
Scanner keyboard = new Scanner(System.in);
System.out.println("Enter the radius of the circle:);
get_this = keyboard.nextDouble();
v=PI* get_this;
System.out.println(v );}}
import java.util.Scanner;
public class AreaOfCircle{public static void main(String[] args)
{
double PI = 3.14159;double get_this;
double v;
Scanner keyboard = new Scanner(System.in);
System.out.println("Enter the radius of the circle:);
get_this = keyboard.nextDouble();
v=PI* get_this;
System.out.println(v );}}
Answers
There are no human answers yet.
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.