Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- #define PI 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067
- using namespace std;
- float arr, n, l;
- int main()
- {
- cin>>n>>l;
- arr=(l * l * n) / (4 * tan((180 / n) * PI / 180));
- cout<<setprecision(2)<<fixed<<(int)(arr*100)/100.0;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement