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

RESTful APIs with CRUD Operations in Laravel 12| (2025)

  RESTful APIs serve as the foundation of modern web development. They follow a set of rules called Representational State Transfer (REST) t...

Powered by Blogger.