fork download
  1. #include <stdio.h>
  2. int main(void) {
  3. double x, y;
  4. x = 1.0 / 3;
  5. y = 1.0 / 5;
  6. printf("3x is %f; 5y is %f\n", x * 3, y * 5);
  7. if ((x * 3) != (y * 5)) {
  8. fprintf(stderr, "3x != 5y\n");
  9. }
  10. return 0;
  11. }
Success #stdin #stdout #stderr 0s 1788KB
stdin
Standard input is empty
stdout
3x is 1.000000; 5y is 1.000000
stderr
3x != 5y