math.h 149 B

123456789101112
  1. int sum (int a, int b) {
  2. return a + b;
  3. }
  4. int diff (int a, int b) {
  5. return b - a;
  6. }
  7. double mean (double a, double b) {
  8. return (a + b) / 2;
  9. }