fork download
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. double a, x, y,r;
  7. cin >> a >> x >> y >> r;
  8.  
  9. cout << 4 * a << "" << a * a << endl;
  10. cout << 2 * (x + y) << "" << x * y << endl;
  11.  
  12. cout << fixed << setprecision(2)
  13. << 2 * 3.14 * r << " "
  14. << 3.14 * r * r;
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
00
1.85963e-3090
0.00 0.00