Exercise#2: [2D] Array (a) consists of 5 rows and 5 columns int a[][]= {{2,-5}, {3,3,1,-4,2}, {18}, {9,2,1,2, 9}}; (a) Write a c++ code that stores the value of 50 instead of any negative number that...


Exercise#2: [2D] Array (a) consists of 5 rows and 5 columns int a[][]= {{2,-5}, {3,3,1,-4,2}, {18},<br>{9,2,1,2, 9}};<br>(a) Write a c++ code that stores the value of 50 instead of any negative number that it finds<br>in the second row of the array(a).<br>(b) Find how many integers are stored in an array a,<br>(c) Count the number of zeros in the matrix<br>

Extracted text: Exercise#2: [2D] Array (a) consists of 5 rows and 5 columns int a[][]= {{2,-5}, {3,3,1,-4,2}, {18}, {9,2,1,2, 9}}; (a) Write a c++ code that stores the value of 50 instead of any negative number that it finds in the second row of the array(a). (b) Find how many integers are stored in an array a, (c) Count the number of zeros in the matrix

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here