fork download
  1. #include <stdio.h>
  2.  
  3. void main() {
  4.  
  5. int a, b, c;
  6.  
  7. printf("Enter first number");
  8. scanf("%d", &a);
  9.  
  10. printf("Enter second number");
  11. scanf("%d", &b);
  12.  
  13. printf("Enter third number");
  14. scanf("%d", &c);
  15.  
  16. int max = a;
  17.  
  18. if(b > max)
  19. max = b;
  20.  
  21. if(c > max)
  22. max = c;
  23.  
  24.  
  25. printf("max number is %d: ", max);
  26. }
Success #stdin #stdout 0s 5300KB
stdin
Standard input is empty
stdout
Enter first numberEnter second numberEnter third numbermax number is 32766: