25
The number of elements in a 5 x 46 array = 5*46.
You don't need an array for that. Just do the multiplication, for example: result = factor1 * factor2; Or: result = 5 * 8;
it is 3 squared
like this
25
The number of elements in a 5 x 46 array = 5*46.
The number of elements (cells) in a 5 x 46 array = 5*46.
you use lines and arrows and draw through numbers
You don't need an array for that. Just do the multiplication, for example: result = factor1 * factor2; Or: result = 5 * 8;
it is 3 squared
like this
15 is the answer The + will be used as the "dots" for the array Array:
The answer will depend on what the problem is: some can be solved using an array but for others, arrays are a complete waste of time.
Accept 5 numbers in an array and display it.
product of 3 x 15
int array[10] = {...}; for (int i = 0; i < 10; ++i) { if (i % 2 == 0) array[i] += 5; else array[i] -= 10; }