import java.util.Scanner;
import java.lang.*;
public class Main {
public static void main(String[] args) {
final double PI = 3.14159;
Scanner input = new Scanner(System.in);
double r = input.nextDouble();
double S = 2 * r * Math.sin(PI/5);
double Area = (5 * Math.pow(S, 2.0)) / (4 * Math.tan(PI / 5));
System.out.printf("% 1.2f", + Area);
}
}
I was wondering why the website wouldnt accept this code, can someone give me a suggestion?