#include #include int main(void) { int row, col; scanf("%d%d", &row, &col); // Initialize the 2d array int **arr = malloc(sizeof(int *) * row); for (int i = 0; i < row; i++) { arr[i] = malloc(sizeof(int) * col); } for (int i = 0; i < row; i++) { for (int j = 0; j < col; j++) { scanf("%d", &arr[i][j]); } } for (int i = 0; i < row; i++) { for (int j = 0; j < col - 1; j++) { printf("%d ", arr[i][j] * -10); } printf("%d\n", arr[i][col - 1] * -10); } // Free the 2d array for (int i = 0; i < row; i++) { free(arr[i]); } free(arr); return 0; }