Advertisement
semsem_elazazy

Untitled

Mar 9th, 2022
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. #include <iostream>
  2. #include<bits/stdc++.h>
  3. #define ll long long
  4. #define ull unsigned long long
  5. #define pi  3.14159
  6. using namespace std;
  7.  
  8.  
  9. int main() {
  10.    ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
  11.  
  12. double  a,ab;
  13. cin>>a>>ab;
  14.  
  15.  
  16. long  double r = sqrt(a/pi);
  17.  
  18. long double x2= pow((4*r),2);
  19.  
  20.  double x= sqrt(x2/2);  cout<<x;
  21.  
  22.  /*double area = (1/2)*(1/2)*x*ab;
  23.  
  24. cout<<area;*/
  25.  
  26. /*long double x= (sqrt(8)*r)/2;
  27.  
  28. long double y = (1/2)*((1/2)*x*ab);
  29. cout<<y;*/
  30. return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement