fork(1) download
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. int a, b, max;
  5. printf("Input a, b:");
  6. scanf("%d,%d", &a, &b);
  7. if (a>b)
  8. max = a;
  9. else
  10. max = b;
  11.  
  12. printf("max = %d\n", max);
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5320KB
stdin
3 4
stdout
Input a, b:max = 32767