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 ejercicio1 | |
| Definir n, i, resultado Como Entero | |
| Escribir "Ingrese un número entero: " | |
| Leer n | |
| resultado = 1 | |
| i = 1 | |
| Mientras i <= n Hacer |
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 ejercicio2 | |
| Definir inicio, final, l, e, contador Como Entero | |
| Escribir "Ingrese el número inicial:" | |
| Leer inicio | |
| Escribir "Ingrese el número final:" | |
| Leer final | |
| contador = 0 | |
| i = inicio |
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 AlternarLetras | |
| Definir frase Como Cadena | |
| Definir i, L Como Entero | |
| Escribir "Ingrese una frase: " | |
| Leer frase | |
| i = 0 | |
| L = Longitud(frase) - 1 |
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 Numeros | |
| Definir numInicial, numFinal, temp, i, imprimirBanderin Como Entero | |
| Imprimir "Ingrese el primer número: " | |
| Leer numInicial | |
| Imprimir "Ingrese el segundo número: " | |
| Leer numFinal | |
| Si numInicial > numFinal Entonces |
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 |
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
| Si numInicial > numFinal Entonces | |
| temp = numInicial | |
| numInicial = numFinal | |
| numFinal = temp | |
| FinSi | |
| suma = 0 | |
| contador = 0 | |
| prio = 1 | |
OlderNewer