Advertisement
a53

Petale

a53
Jan 19th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. #include <iomanip>
  4. #define PI 3.1415926535
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. int n,r;
  10. cin>>n>>r;
  11. cout<<fixed<<setprecision(7)<<(double)1.0*r*(sin(PI/n)/(1-sin(PI/n)));
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement