fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int a,b,c;
  5. scanf("%d%d%d",&a,&b,&c);
  6.  
  7. if(a>b)
  8. {
  9. if(a>c)
  10. {
  11. printf("%d",a);
  12. }
  13. else
  14. {
  15. printf("%d",c);
  16. }
  17. }
  18. else
  19. {
  20. if(b>c)
  21. {
  22. printf("%d",b);
  23. }
  24. else
  25. {
  26. printf("%d",c);
  27. }
  28. }
  29.  
  30. return 0;
  31. }
Success #stdin #stdout 0.01s 5316KB
stdin
1 2 3
stdout
3