Where am I going wrong here?
Read a 2D-array Welte a function to read values of a number of rows, number of columns, 2 dimensional (20) amay dements and display the 20 any in a mano. 2004 145 230 WHIK First line of represents the number of rows. Second line of input represents the number of columns Third facts array ademands of the 1st row and so on. Output 115 230 where There must be single space between 2 numbers in the row. there should not be sy space after the best rember in the row eg in the 2nd row, there should not be any spe aber. Amet Howwe vakances withen the carpe [1 n 100. • 2D Array elements are within the range | 2117483618 to 2147483517]. + Test Case(s) + Grading Liftoria O skrange + Add Custom lest Case Defil 2 Input 143 210 solution.cpp Ⓒ 1 #include > using space std; 3 1 5. b 8 19 11. 12 14 15 15 17 18 19 28- 21 22- 23- 24 25 26 37 int main() 76 29 ) int rows, columns; in 3 rok in >> volums; Turtink I = 0; i < rum; i++) { long int arr[100][100]; 3 } for(int 30; 3 columns; j++) { ein >> are[¹][B 1 for(int i; i
Where am I going wrong here?
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am