fork download
  1. #include <stdio.h>
  2.  
  3. int f(int a,int b,int c)
  4. {
  5. int d=99999;
  6. if (d<a)
  7. d = a;
  8. if (d<b)
  9. d = b;
  10. if (c<d)
  11. d = c;
  12. return d;
  13. }
  14. int main()
  15. {
  16. int a,b,c;
  17. scanf("%d",&a);
  18. scanf("%d",&b);
  19. scanf("%d",&c);
  20. printf("%d",f(a,b,c));
  21. return 0;
  22. }
Success #stdin #stdout 0.01s 5292KB
stdin
Standard input is empty
stdout
32764