0
Array
So hello guys I am bit nee to the whole programming thing but how can I make the program when it find like for example -1 it copies the next cell to another array ?
11 Answers
+ 2
what is -1 and next cell ?
+ 2
JOKER you mean ,
arr1=[1, 2,-1, 3]
arr2=[3]
??
+ 1
Can you show an example then ?
+ 1
Oh ok , i don't think i can help you , wait for others and sorry for wasting your time!!
0
just imagine an array full of 300 numbers and what I want to do is when the computer finds a -1 in the array it copies the next cell to another array
0
nope I donât think thatâs it
0
the problem is that a question and I am universty student and I donât know how to solve it
0
in(x) when you face (-1) the first time then â-> copy 1 cell after it to (y)
0
thats the question
0
What if you use the if condition.
0
Or try to write the code here and we will see how we can correct it to the condition that you are talking about.