Area of a circle

Report a typo

Given the radius of a circle, you need to find the area of that circle. Use this formula:

S=πR2 S = \pi R^2

where S S is the area of a circle, π \pi is a Math.PI constant, and R R is the radius of the circle.

Sample Input 1:

100

Sample Output 1:

31415.926535897932
Write a program in Java 17
import java.util.Scanner;

class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// put your code here
}
}
___

Create a free account to access the full topic