Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* FUNCTIONS.CPP */
- #include "define.h"
- #include "functions.h"
- struct TableOfComplicate Table;
- void input(int n, int m) {
- int i;
- int j;
- for (i = 0; i < n; i++)
- for (j = 0; j < m; j++) {
- printf("Введите x,i,y для %d строки -- %d столбца\n", i + 1, j + 1);
- scanf("%f %f %f", &Table.x[i][j], &Table.i[i][j], &Table.y[i][j]);
- Table.complicate_value[i][j] = Table.x[i][j] + Table.i[i][j] * Table.y[i][j];
- Table.module_complicate[i][j] = sqrt(pow(Table.x[i][j], 2) + pow(Table.y[i][j], 2));
- }
- }
- void output(int n, int m) {
- for (int i = 0; i < n; i++) {
- for (int j = 0; j < m; j++) {
- printf("%f ", Table.complicate_value[i][j]);
- }
- printf("\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement