Solution to the problem number 10432 of UVA - 10432.

Any questions do not hesitate to contact.

#include <bits/stdc++.h>
using namespace std;

int main()
{
    double r,n;
    while(scanf("%lf%lf",&r,&n)==2)
        printf("%.3lf\n",r*r*n*sin(2*acos(-1)/n)/2); //area of polygon with circumradio (r*r*n*sin(360/n))/2;
    return 0;
}

Don't miss anything.

Keep in touch with Isaac Lozano Osorio!