Advertisement
Imran1107048

Circle

Jun 23rd, 2020
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. const double pi = acos(-1);
  5. int main()
  6. {
  7. double r;
  8. cin >> r;
  9. cout << fixed << setprecision(6);
  10. cout << pi*r*r << " " << 2*pi*r << endl;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement