Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void main(void)
- {
- int array[4][4] =
- {
- {0,0,0,0},
- {0,0,0,0},
- {0,0,0,0},
- {0,0,0,0}
- };
- int x, y;
- array[0][0] = 1;
- array[1][1] = 3;
- array[2][2] = 3;
- array[3][3] = 7;
- // Ausgeben des Arrays
- for(x = 0; x < 4; x++)
- {
- for(y = 0; y < 4; y++)
- {
- printf("%d ",array[x][y]);
- }
- printf("\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement