By Ricardo Martins, IFSULDEMINAS Brazil
It is possible to calculate the area of a regular pentagon, that is, a geometric figure with five equal sides, given the length of one side. So, do it.
Write a program that, given the length of one side of a regular pentagon, computes your area.
There will be a value C that indicates the number of test cases. Then there will be an integer N for each case (1 ≤ N ≤ 10000), indicating the length of the side of a regular pentagon.
For each test case, print the corresponding value of the area of the respective pentagon, with three decimal digits of precision.
Input Sample | Output Sample |
3 |
1.720 |