Advertisement
aperles

testmaxmin.c

Feb 13th, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. #include <maxmin.h>
  5.  
  6. int main(int argc, char *argv[])
  7. {
  8.  
  9.     float a, b, max, min;
  10.    
  11.     printf("Escribe el numero a: ");
  12.     scanf("%f", &a);
  13.     printf("Escribe el numero b: ");
  14.     scanf("%f", &b);
  15.    
  16.     max=maximo (a, b);
  17.     min=minimo (a, b);
  18.  
  19.     printf("El maximo es: %f\n", max);
  20.     printf("El minimo es: %f\n", min);
  21.  
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement