fork(1) download
  1. #include <stdio.h>
  2. int Max(int x,int y){
  3. if(x>y)
  4. return x;
  5. else
  6. return y;
  7.  
  8. }
  9.  
  10.  
  11. int main(void)
  12. {
  13. int a,b,max;
  14. scanf("%d%d",&a,&b);
  15. max=Max(a,b);
  16. printf("max=%d\n",max);
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 5360KB
stdin
6 3
stdout
max=6