fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main (void)
  4. {
  5. int num1,num2,larger;
  6. scanf("%d %d",&num1,&num2);
  7.  
  8. num1>num2 ? (larger=num1) : (larger=num2);
  9. printf("%d is larger",larger);
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 5288KB
stdin
2 88
stdout
88 is larger