Created
August 7, 2019 18:42
-
-
Save parzibyte/a132c15563aaabb604127e803a10a89e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Probar | |
*/ | |
$numeros = [1, 50, 22, 50, 80, 5164, 5151, 441, 294, 36, 21]; | |
$busqueda = 441; | |
$indice = busquedaSecuencialEnArregloDeEnteros($numeros, $busqueda); | |
echo "El número $busqueda está en la posición $indice"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment