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;
  10. float x;
  11.  
  12. scanf("%d", &C);
  13. x = (A+B+C)/3;
  14.  
  15. if (x > 100)
  16. printf("\nx = %f > 100", x );
  17.  
  18. else if (x < 100)
  19. printf("\nx = %f < 100", x );
  20.  
  21. else
  22. printf("\nx = %f = 100", x );
  23.  
  24. return 0;
  25. }
Success #stdin #stdout 0.01s 5316KB
stdin
-9
stdout
x = 108.000000 > 100
А = 225
B = 110
C = -9