Advertisement
aperles

maxmin.c

Feb 13th, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "maxmin.h"
  2.  
  3. float maximo (float a, float b)
  4. {
  5.   if(a>b) {
  6.     return a;
  7.   } else {
  8.     return b;
  9.   }
  10. }
  11.  
  12. float minimo(float a, float b)
  13. {
  14.   if(a>b)
  15.   {
  16.     return b;
  17.   }
  18.   else
  19.   {
  20.     return a;
  21.   }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement