fork(1) download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Ideone
  6. {
  7. public static void main (String[] args)
  8. {
  9. double a, S;
  10. Scanner in = new Scanner(System.in);
  11. a = in.nextInt();
  12. S = (Math.sqrt(3)/4)*Math.pow(a, 2);
  13. System.out.println(S);
  14. }
  15. }
  16.  
Success #stdin #stdout 0.07s 4386816KB
stdin
3
stdout
3.8971143170299736