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