fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. float pi = 3.14;
  6. int r;
  7. cin >> r;
  8. cout << fixed << setprecision(2) <<(float)2*pi*r << endl;
  9. return 0;
  10. }
Success #stdin #stdout 0.01s 5308KB
stdin
2
stdout
12.56