1028: Makeup Exam: Problem 2
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:140
Solved:43
Description
A regular convex polygon is a equilateral and equilangular polygon. Compute C1, the perimeter of a regular convex polygon with all corners lying on a single circle of unit radius (radius is 1.0). Compute C2, the perimeter of a regular convex polygon with all edges tangent a single circle of unit radius. In the program one takes the number of edges N from keyboard and show the C1 and C2 separated by a comma. The format for C1 and C2 should have three digits in fractional part.
For example: N=3
Output: 5.196,10.392
For example: N=3
Output: 5.196,10.392
Input
3
Output
5.196,10.392
Sample Input Copy
5
Sample Output Copy
5.878,7.265
HINT
Hint: PI=3.1415926 (rad)