+ 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.
5 ответов
+ 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
}
+ 8
Updated ans.
+ 8
You are welcomed. :>
+ 3
Thank you so much. You have been a great help to me.
+ 2
And Displaying ?