fork(1) 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 0s 5288KB
stdin
Standard input is empty
stdout
Enter 2 numberGreatest is -78715504,num1