fork download
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. int 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.  
  17. return 0;
  18. }
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout
851970432 1300603904
1369075382 132011520
205770.48 3371137773.84