fork(1) download
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4.  
  5. int main() {
  6. double A, p = 3.14159, R;
  7. cin >> R;
  8. A = p * R * R;
  9. cout << fixed << setprecision(4);
  10. cout << "A=" << A << endl;
  11. return 0;
  12. }
Success #stdin #stdout 0s 3476KB
stdin
2
stdout
A=12.5664