fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int a, b, c;
  7.  
  8. cin >> a >> b >> c;
  9. cout << a*b*c << "\n";
  10. cout << 2*(a*b + a*c + b*c) << "\n";
  11.  
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0.01s 5292KB
stdin
4 4 4
stdout
64
96