Question: Write a C program to define two-dimensional array A[row][col] of integers. Ask the user to enter the number of rows and columns. Read in the
![Write a C program to define two-dimensional array A[row][col] of integers.](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f466c9a08f0_12966f466c93fc3f.jpg)
Write a C program to define two-dimensional array A[row][col] of integers. Ask the user to enter the number of rows and columns. Read in the elements of the array, then replace the even numbers in the array with Os and the odd numbers with 1s. Output Example Enter the number of rows: 2 Enter the number of columns : 3 Enter the elements of the array: 7 69 4 2 3 The array after replacement: 101 001
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
