fork download
  1. #include<stdio.h>
  2. int max(int num1, int num2)
  3. {
  4. int result;
  5.  
  6. if(num1>num2)
  7. result=num1;
  8. else
  9. result=num2;
  10. return result;
  11. }
  12. int main()
  13. {
  14. int num1,num2;
  15.  
  16. printf("enter two number: ");
  17. scanf("%d,%d",&num1,&num2);
  18. printf("The answer is:%d",max(num1,num2));
  19. }
Success #stdin #stdout 0s 5272KB
stdin
 
stdout
enter two number: The answer is:1561248144