146k views
5 votes
Fill a 2-by-3 array with ones, a 3-by-3 array with zeros, and a 2-by-5 array with 7s.

1 Answer

4 votes

Final answer:

To fill the given arrays with the specified numbers, we simply write the corresponding numbers in each cell of the array.

Step-by-step explanation:

To fill a 2-by-3 array with ones, simply write the number 1 in each cell of the array like this:

1 1 1
1 1 1

To fill a 3-by-3 array with zeros, write the number 0 in each cell of the array:

0 0 0
0 0 0
0 0 0

Finally, to fill a 2-by-5 array with 7s, write the number 7 in each cell of the array:

7 7 7 7 7
7 7 7 7 7

User Trenthogan
by
8.5k points