so I have a 2D arry with defaul value 0, and what I want to do is to accept a value from a user to change
0s to 1s depending on the accepted value.
for example:
we have an arry like this
0000
0000
0000
0000
and the user enters 3
the arry shoule be
1110
0000
0000
0000
doesn't matter the order of 1s , they can be anywhere in the arry
how do I do that?
waht type of loops and conditions I need ?