mathFunction.cpp 274 B

12345678910111213141516171819
  1. #include <iostream>
  2. #include "mathFunction.h"
  3. double MyMath::div(double a, double b)
  4. {
  5. return a / b;
  6. }
  7. int MyMath::sum(int a, int b)
  8. {
  9. return a + b;
  10. }
  11. double MyMath::multiply(double a, double b)
  12. {
  13. return a * b;
  14. }
  15. double MyMath::dif(double a, double b)
  16. {
  17. return a - b;
  18. }