fork(2) 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. printf("Введите целое цисло: \n");
  13. scanf("%d", &C);
  14. x = (A+B+C)/3;
  15.  
  16. if (x > 100)
  17. printf("x = %f > 100", x );
  18.  
  19. else if (x < 100)
  20. printf("x = %f < 100", x );
  21.  
  22. else
  23. printf("x = %f = 100", x );
  24.  
  25. return 0;
  26. }
Success #stdin #stdout 0.01s 5440KB
stdin
10
stdout
Введите целое цисло: 
x = 115.000000 > 100