Skip to content

Instantly share code, notes, and snippets.

@Kiuren
Created July 26, 2026 02:18
Show Gist options
  • Select an option

  • Save Kiuren/2d63fa9d8fdd3d3d0c7eefa4f7ce328c to your computer and use it in GitHub Desktop.

Select an option

Save Kiuren/2d63fa9d8fdd3d3d0c7eefa4f7ce328c to your computer and use it in GitHub Desktop.
Creado con PseInt Web
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