rev='made'/> name='keywords'/> name='author'/> ANURANAN: UVA Solution 10432 : Polygon Inside A Circle

Welcome Note

Hi,
I'm Anisuzzaman Babla . I am a full stack Android Application Developer. I am working with Android for more than two years. I have completed my graduation from IIT, Jahangirnagar University. I have developed a series of commercially successful apps on Android. Moreover, 10+ of my Apps are live at Google play store. .
Thank You

UVA Solution 10432 : Polygon Inside A Circle

#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;

double pi = 2*acos(0);

int main() {
    int n;
    double r;
    while(cin >> r >> n) {
        cout << fixed << setprecision(3) << 0.5*(n*r*r*sin(2.*pi/n)) << endl;
    }
    return 0;
}