fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int a, b, c;
  6. puts("Begin...");
  7. for (a = 0; a < 128; a++)
  8. for (b = 1; b < 128; b++)
  9. for (c = 1; c < 128; c++)
  10. {
  11. int r0 = (a / b) / c;
  12. int r1 = a / (b * c);
  13. if (r0 != r1)
  14. printf("(%d / %d) / %d != %d / (%d * %d)\n", a, b, c, a, b, c);
  15. //printf(".");
  16. }
  17. puts("End.");
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0.01s 4524KB
stdin
Standard input is empty
stdout
Begin...
End.