fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int num1,num2;
  5. printf("Enter 2 number");
  6. scanf("%d%d",&num1,&num2);
  7.  
  8. if(num1>num2){
  9. printf("Greatest is %d",num1);
  10. }else{
  11. printf("Greatest is %d",num2);
  12. }
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.01s 5280KB
stdin
12
54
stdout
Enter 2 numberGreatest is 54