fork download
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. int fee(double x, int y)
  7. {
  8. return 3*(x/y);
  9. }
  10.  
  11. int main()
  12. {
  13. cout << fee(8.2,3);
  14. return 0;
  15. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
8