public class Main {
public static void main(String...args) {
double R = 1;
double L = 2 * Math.PI * R;
double S = Math.PI * Math.pow(R, 2);
System.out.println("R = " + R);
System.out.println("L = " + L);
System.out.println("S = " + S);
}
}
результат R = 1.0
L = 6.283185307179586
S = 3.141592653589793