I wanted to populate an array and the array has 10 ROWS and 20 COLUMNS
The requirement states that I need to initialize the array in such a way that the digit 5 is in the first row which would be array[0][0] and then in the remaining rows initialize the digit 10.
oh and btw it is a 2d array
int myarray [10][20]
output should be like this:
5
10
10
10
10
10
10
10
10
10
How [for] loops are coded. The output is the value multiplied with the loop index. Further more you need an if -> index == 1 -> output: 5 * index else output: 10 * index.