fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a,b,max;
  6. printf("input a,b:");
  7. scanf("%d,%d",&a,&b);
  8. max=a>b?a:b;
  9. printf("max=%d\n",max);
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 5324KB
stdin
4,6
stdout
input a,b:max=6