fork(2) download
  1. #include <stdio.h>
  2.  
  3. const int N = 4;
  4.  
  5. int main(void)
  6. {
  7. int i, j, k;
  8. i = 0; j = 0; k = 0;
  9. while (i < N) {
  10. while (j < N) {
  11. while (k < N) {
  12. printf("%d,%d,%d\n", i, j, k);
  13. ++k;
  14. }
  15. ++j; k = j;
  16. }
  17. ++i; j = i;
  18. }
  19. return 0;
  20. }
Success #stdin #stdout 0s 2052KB
stdin
Standard input is empty
stdout
0,0,0
0,0,1
0,0,2
0,0,3
0,1,1
0,1,2
0,1,3
0,2,2
0,2,3
0,3,3
1,2,2
1,2,3
1,3,3
2,3,3