fork download
  1. #include <iostream>
  2. #include<iomanip>
  3. using namespace std;
  4. int main() {
  5. double R,area;
  6. const double PI=3.141592653;
  7. cin>>R;
  8. area=PI*R*R;
  9. cout<<fixed<<setprecision(9)<<"area = "<<area;
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
area = 0.000000000