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