fork download
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. int a, b, c, max;
  5. scanf("%d%d%d", &a, &b, &c);
  6.  
  7. if (a >= b && a >= c)
  8. {
  9. max = a;
  10. }
  11. if (b >= a && b >= c)
  12. {
  13. max = b;
  14. }
  15. if (c >= a && c >= b)
  16. {
  17. max = c;
  18. }
  19.  
  20. printf("最大值:%d", max);
  21. return 0;
  22. }
Success #stdin #stdout 0s 5284KB
stdin
3,4,5
stdout
最大值:32765