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