fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int a,b;
  5. printf("Enter number a:\n");
  6. scanf("%d", &a);
  7. printf("Enter number b:\n");
  8. scanf("%d", &b);
  9. if(a>b) {
  10. printf("The largest number is a");
  11. }
  12. else if(b>a)
  13. {
  14. printf("The largest number is b");
  15. }
  16.  
  17. else{
  18. printf("Both are equal");
  19. }
  20.  
  21.  
  22.  
  23.  
  24.  
  25. }
  26.  
  27.  
Success #stdin #stdout 0s 5276KB
stdin
Standard input is empty
stdout
Enter number a:
Enter number b:
The largest number is a