// This program should create and scan in the elements of a 3x3 2d array, // then multiply all the odd numbers in the 2d array by 100. // // Although this code compiles, it prints the wrong output. Please help fix it! #include #include #define SIZE 3 int main(void) { printf("Enter your numbers:\n"); char array[SIZE][SIZE]; for (int row = 0; row < SIZE; row++) { for (int col = SIZE - 1; col >= 0; col--) { scanf(" %c", &array[row][col]); } } for (int row = 0; row < SIZE; row++) { if (array[row][row] / 2 != 0) { for (int col = 0; col < SIZE; col++) { array[row][col] = array[row][col] * 100; } } } // ==================== DO NOT NEED TO EDIT BELOW HERE ===================== // There are no bugs in here, this is simply to assist in printing out // the contents of the 2D array printf("Converted:\n"); for (int row = 0; row < SIZE; row++) { for (int col = 0; col < SIZE; col++) { printf("%d ", array[row][col]); } printf("\n"); } return 0; }