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