fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. for (int a = 0; a <= 2; a++)
  6. {
  7. for (int b = 0; b <= 2; b++)
  8. {
  9. for (int c = 0; c <= 2; c++)
  10. {
  11. printf("%d %d %d\n", a, b, c);
  12. }
  13. }
  14. }
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 5288KB
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