fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <time.h>
  4.  
  5. int main(void) {
  6. srand(time(0));
  7. for (int k=0; k<100000; k++) {
  8. int a = rand() % 100 + 1;
  9. int b = rand() % 100 + 1;
  10. int c = rand() % 100 + 1;
  11. if ((a/b)/c != a/(b*c)) printf("%d %d %d\n", a, b, c);
  12. }
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 9288KB
stdin
Standard input is empty
stdout
Standard output is empty