Array | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Array

hello everyone, I would like to ask for advice on this problem: practically, after loading an array, I input a value that will be a reference. Then I have to build two other vectors that contain the values ā€‹ā€‹either greater or less than the given value. In practice I loaded the Array and then in an IF control I saw if the array(always in a for loop) was less than the entered value and then I put that if it was true, I put the smaller values ā€‹ā€‹in the new Array, otherwise the opposite. For example: My Array: 6 4 5 2 1 Input reference value: 3 Array_1: 1 2 Array_2: 4 5 6 The reasoning seems correct to me, but the problem is that coding does not work. Sorry for my english.

15th Apr 2020, 1:36 AM
Computer_King20
Computer_King20 - avatar
1 Resposta
+ 3
Computer_King20 Run your code in sololearn code play ground share your code with your question it will be easy to community to know your exact problem
15th Apr 2020, 8:08 AM
RšŸ’ šŸ‡®šŸ‡³
RšŸ’ šŸ‡®šŸ‡³ - avatar