Question: answer me in c++ Instructions: 1- Submit.cpp file that contain all the answers of the below question Problem 1: Download the LE4.cpp file and Complete

 answer me in c++ Instructions: 1- Submit.cpp file that contain all
the answers of the below question Problem 1: Download the LE4.cpp file
answer me in c++

Instructions: 1- Submit.cpp file that contain all the answers of the below question Problem 1: Download the LE4.cpp file and Complete the code by answering the below questions: Write a function to print 2D array Write a function that take 2D array as parameter, the function should replace each element in the main diameter (diagonal) with zero? Printing the diagonal of array 7 9 6 4 6 8 4 3 2 9 9 9 5 1 6 2 7 4 Nom ON o con // write your name: #include #include using namespace std; //Printing Array Function //Replacing Diagonal by Zero function // int main() { const int NUM_ROWS = 5; // Number of rows const int NUM_COLS = 5; // Number of columns int i, j; int numbers[NUM_ROWS] [NUM_COLS] = {{2,7,9,6,4}, {6, 1, 8, 9,4}, {4, 3, 7, 2, 9}, {9, 9, 5, 3, 1}, {6, 2, 7, 4, 1}}; // Call pring 2D array // Call diagonal function // Call pring 2D array after replacing diagonal by zero return 0; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!