Created
July 26, 2026 02:18
-
-
Save Kiuren/2d63fa9d8fdd3d3d0c7eefa4f7ce328c to your computer and use it in GitHub Desktop.
Creado con PseInt Web
This file contains hidden or 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
| Algoritmo FraseMasLarga | |
| Definir frases Como Cadena | |
| Definir n, i, Larga, maxLongitud, pos Como Entero | |
| Definir fraseMax Como Cadena | |
| Escribir "¿Cuántas frases desea ingresar?" | |
| Leer n | |
| maxLongitud = 0 | |
| pos = 0 | |
| Para i = 1 Hasta n Con Paso 1 Hacer | |
| Imprimir "Ingrese la frase ", i, ":" | |
| Leer frases | |
| Si Longitud(frases) > maxLongitud Entonces | |
| maxLongitud = Longitud(frases) | |
| pos = i | |
| fraseMax = frases | |
| FinSi | |
| FinPara | |
| Escribir "La frase mas larga es: ", fraseMax | |
| Escribir "Su longitud es: ", maxLongitud | |
| Escribir "La posicion es: ", pos | |
| FinAlgoritmo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment