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