- Given A 2d Array Of Integers B R R Where R Is A Given Integer Number The Array Is Already Filled With Integer Values 1 (27.34 KiB) Viewed 14 times
Given a 2D array of integers b[r][r] where r is a given integer number. The array is already filled with integer values
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Given a 2D array of integers b[r][r] where r is a given integer number. The array is already filled with integer values
Given a 2D array of integers b[r][r] where r is a given integer number. The array is already filled with integer values (so do not write code to fill the array). Write C++ statements that output the diagonal values of array b as shown in the example below when r = 5. If r = 5 and the array contains the values below, then the C++ statements will print 3, 2; 7; 5; 1 1 2 3 6 6 3 5 5 5 4 3 4 7 2 3 4 2 1 2 2 6 7 8 9 3 Note: Write an efficient solution. You cannot use break nor exit nor return in solving this problem Response Feedback; two loops -5-