fork(3) download
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <cmath>
  4. using namespace std;
  5.  
  6. int main() {
  7. double r;
  8. cin >> r;
  9. cout << fixed << setprecision(4) << 2*M_PI*r << " " << M_PI*r*r;
  10. return 0;
  11. }
Success #stdin #stdout 0s 15232KB
stdin
313
stdout
1966.6370 307778.6907