O.cpp 235 B

123456789101112
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. const double PI = acos(-1.0);
  4. int main() {
  5. double r, h;
  6. cin >> r >> h;
  7. cout << "Area=" << fixed << setprecision(2)
  8. << 2 * PI * r * r + 2 * PI * r * h;
  9. return 0;
  10. }