initial commit

This commit is contained in:
2023-07-16 13:23:25 +00:00
commit c3fa5367c3
85 changed files with 4921 additions and 0 deletions

23
C++/lesson3/task5.cpp Normal file
View File

@ -0,0 +1,23 @@
#include <iostream>
int main() {
int a[3][3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
std::cout << a[i][j] << ' ';
}
std::cout << '\n';
}
std::cout << '\n';
std::swap(a[0], a[2]);
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
std::cout << a[i][j] << ' ';
}
std::cout << '\n';
}
}