Hi, what I want is to get a random value stored in a variable after iterating a loop array 10 times.
The code that I've made just throws me a letter.
If anyone can give me a hand with this, I would be grateful.
Greetings.
var palos =...
This is a method that orders a string array using an algorithm, but apparently the code it uses shows an error in the comparison of the if
public void ordenar (Array3 a) {
String buffer = null;
int i =0;
while ( i< a.getArreglo(...
I was recently given a code in C language to continue developing a new programming language and I found some instructions that caught my attention on how to declare an array and use it, but that I had seen them before. Attached an example of the...
I have a Array of which I need to filter, I am using array_filter the following way:
<?php
$arr = ['a' => 1, 'b' => 2, 'c' => 3, 'd' => 4];
var_dump(array_filter($arr, function($v, $k) {
return $k == 'b' || $v ==...
I am simulating an investor platform and I have variables where "stock shares" are kept, the investor registers and accesses a menu where there is an option to see the quotes, what I want to do is that the quote change every 2 minutes.
This is w...
It's not really an error, it's a warning I'd like to eliminate.
I pass the code and the error to see if anyone knows how to solve it.
function brc_hidden_meta_boxes( $hidden ) {
$hidden = array_merge( $hidden, array( 'slugdiv' ) );...
I have a two-dimensional arrangement with the rand function in which it adds the total of rows but I do not know how to do it so that it also sums the total of columns
in row 16 is where I want to add the total of each column
include stdio...
I am learning to use binary trees, the problem is that I have a basic error that I do not know how to solve, I am new to Python:
print('ingresa el rango del array:')
rango=int(input())
array=[]
for i in range(rango):
print ('ingresa el nu...