+ 2

Accepting And Displaying Values In An Multidimensional Array From User.

I want to accept values from user and display them in an Multi Dimensional Array using a for loop. Please somebody give me the code or syntax for it.

10th May 2017, 5:39 PM
Kunal Karnik
Kunal Karnik - avatar
5 Answers
+ 10
Algorithm: int array[10][10]; for (int i = 0; i < 10; i++) { for (int j = 0; j < 10; j++) { // input to array[i][j] } } For displaying: for (int i = 0; i < 10; i++) { for (int j = 0; j < 10; j++) { // print array[i][j] } // print newline }
10th May 2017, 5:54 PM
Hatsy Rei
Hatsy Rei - avatar
+ 8
Updated ans.
10th May 2017, 6:04 PM
Hatsy Rei
Hatsy Rei - avatar
+ 8
You are welcomed. :>
10th May 2017, 6:06 PM
Hatsy Rei
Hatsy Rei - avatar
+ 3
Thank you so much. You have been a great help to me.
10th May 2017, 6:05 PM
Kunal Karnik
Kunal Karnik - avatar
+ 2
And Displaying ?
10th May 2017, 5:56 PM
Kunal Karnik
Kunal Karnik - avatar