Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- using namespace std;
- void print_mass(double x[5][5])
- {
- int i, j;
- for (i = 0; i < 5; i++)
- {
- for (j = 0; j < 5; j++)
- {
- cout << setw(10) << x[i][j];
- }
- cout << endl;
- }
- }
- int main()
- {
- double A[5][5], B[5][5];
- int i, j;
- for (i = 0; i < 5; i++)
- {
- for (j = 00; j < 5; j++)
- {
- A[i][j] = 2.3*i + j;
- B[i][j] = i - 1.5*j;
- }
- }
- cout << "massiv A: " << endl;
- print_mass(A);
- cout << "massiv B: " << endl;
- print_mass(B);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement