photo

Sarabjit Singh


Active since 2019

Followers: 0   Following: 0

Statistics

Feeds

View by

Question


Need help creating a two separate matrices; one matrix is a 5x5 and has ones in columns 1, 3, and 5. The other matrix is also 5x5, but in the elements in the fifth column are equal to the row number that they are on.
I'm supposed to use loops and/or conditionals to achieve the arrays. I'm not sure where to start; any help is appreciated!

6 years ago | 1 answer | 0

1

answer