fork(1) download
  1. #include <math.h>
  2. #include <stdio.h>
  3.  
  4. int main()
  5. {
  6. const int A = 225;
  7. const int B = 110;
  8.  
  9. int C, x;
  10.  
  11. scanf("%d", &C);
  12. x = (A+B+C)/3;
  13.  
  14. if (x > 100)
  15. printf("\nx = %d > 100", x );
  16.  
  17. else if (x < 100)
  18. printf("\nx = %d < 100", x );
  19.  
  20. else
  21. printf("\nx = %d = 100", x );
  22.  
  23. printf("\nА = %d", A );
  24. printf("\nB = %d", B );
  25. printf("\nC = %d", C );
  26.  
  27. return 0;
  28. }
Success #stdin #stdout 0.01s 5504KB
stdin
-98
stdout
x = 79 < 100
А = 225
B = 110
C = -98