fork download
  1. #include<stdio.h>
  2. int n1,n2,max;
  3.  
  4. main(){
  5. printf("Enter 1st number: ");
  6. scanf("%d",&n1);
  7. printf("Enter 2nd number: ");
  8. scanf("%d",&n2);
  9. if(n1>n2){
  10. max=n1;
  11. }else{
  12. max=n2;
  13. }
  14. printf("%d",max);
  15. }
Success #stdin #stdout 0s 5272KB
stdin
Standard input is empty
stdout
Enter 1st number: Enter 2nd number: 0