Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <assert.h>
- int main()
- {
- int arr[3][3] = {};
- for (int i = 0; i < 3; ++i)
- {
- assert(0 <= i && i < 3);
- for (int j = 0; j < 3; ++j)
- {
- assert(0 <= j && j < 3);
- scanf("%d", &a[i][j];
- }
- }
- for (int j = 0; j < 3; ++j)
- {
- assert(0 <= j && j < 3);
- printf("%d ", arr[1][j];
- }
- for (int j = 0; j < 3; ++j)
- {
- assert(0 <= j && j < 3);
- printf("%d ", arr[0][j];
- }
- for (int j = 0; j < 3; ++j)
- {
- assert(0 <= j && j < 3);
- printf("%d ", arr[2][j];
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement