fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. int emv_trap(int b,int B,int y){
  6. return(b+B)*y/2;
  7.  
  8. }
  9.  
  10. int main ()
  11. {
  12. cout << emv_trap(5,7,4);
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
24