UVA 10432 Solution

Hints:



Solve in c:

#include<stdio.h>
#include<math.h>
int main()
{
    double r,n,a;
    while(scanf("%lf%lf",&r,&n)!=EOF)
    {
        a=n*r*r*sin((2*M_PI)/n)/2.0;
        printf("%.3lf\n",a);
    }
}

No comments

Most View Post

Recent post

Codeforces Round 971 (Div. 4) 2009C. The Legend of Freya the Frog Solution

  Problem Link    https://codeforces.com/contest/2009/problem/C S olution in C++: /// Author : AH_Tonmoy #include < bits / stdc ++. h &g...

Powered by Blogger.