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.
2 Antworten
+ 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