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 ?

11th Feb 2021, 10:10 PM
JOKER
11 odpowiedzi
+ 2
what is -1 and next cell ?
11th Feb 2021, 10:24 PM
Abhay
Abhay - avatar
+ 2
JOKER you mean , arr1=[1, 2,-1, 3] arr2=[3] ??
11th Feb 2021, 10:31 PM
Abhay
Abhay - avatar
+ 1
Can you show an example then ?
11th Feb 2021, 10:33 PM
Abhay
Abhay - avatar
+ 1
Oh ok , i don't think i can help you , wait for others and sorry for wasting your time!!
11th Feb 2021, 10:45 PM
Abhay
Abhay - avatar
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
11th Feb 2021, 10:27 PM
JOKER
0
nope I don’t think that’s it
11th Feb 2021, 10:32 PM
JOKER
0
the problem is that a question and I am universty student and I don’t know how to solve it
11th Feb 2021, 10:37 PM
JOKER
0
in(x) when you face (-1) the first time then —-> copy 1 cell after it to (y)
11th Feb 2021, 10:38 PM
JOKER
0
thats the question
11th Feb 2021, 10:38 PM
JOKER
0
What if you use the if condition.
13th Feb 2021, 11:08 AM
NGAHU ERIC MAINA
NGAHU ERIC MAINA - avatar
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.
13th Feb 2021, 11:11 AM
NGAHU ERIC MAINA
NGAHU ERIC MAINA - avatar