1
0

c8-22-1.c 269 B

1234567891011121314151617
  1. #include <stdio.h>
  2. int main()
  3. {int max(int,int);
  4. int a,b,c;
  5. printf("please enter a and b:");
  6. scanf("%d,%d",&a,&b);
  7. c=max(a,b);
  8. printf("a=%d\nb=%d\nmax=%d\n",a,b,c);
  9. return 0;
  10. }
  11. int max(int x,int y)
  12. {int z;
  13. if(x>y) z=x;
  14. else z=y;
  15. return(z);
  16. }