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