1
0

c7-3.c 249 B

123456789101112131415
  1. #include <stdio.h>
  2. int main()
  3. {int max(float x,float y);
  4. float a,b;
  5. int c;
  6. scanf("%f,%f,",&a,&b);
  7. c=max(a,b);
  8. printf("max is %d\n",c);
  9. return 0;
  10. }
  11. int max(float x,float y)
  12. {float z;
  13. z=x>y?x:y;
  14. return(z);
  15. }