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 InsertarEnArreglos | |
| Definir hermanos, generos, familia Como Cadena | |
| Definir cantidad, i Como Entero | |
| Imprimir "Cantidad de hermanos: " | |
| Leer cantidad | |
| i = 1 | |
| Imprimir " " |
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 RecorrerArreglos | |
| Definir estudiantes, estudiante Como Cadena | |
| Definir i Como Entero | |
| Dimensionar estudiantes[5] | |
| estudiantes[1] = "Pablo Quezada" | |
| estudiantes[2] = "Michael Rosario" | |
| estudiantes[3] = "María Pérez" | |
| estudiantes[4] = "Peterson Méndez" | |
| estudiantes[5] = "Julio Rodríguez" |
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 ArreglosBase | |
| Definir hermanos Como Cadena | |
| Definir edades Como Entero | |
| Dimensionar hermanos[5] | |
| hermanos[1] = "Julio Santana" | |
| hermanos[2] = "Carlos Santana" | |
| hermanos[3] = "Rosaura Santana" | |
| hermanos[4] = "María Santana" | |
| hermanos[5] = "Pablo Santana" |
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 Interruptor | |
| Definir i, sw Como Entero | |
| i = 1 | |
| sw = 1 | |
| Mientras i <= 12 Hacer | |
| Si sw == 1 Entonces | |
| Imprimir "Está encendido" |
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
| Funcion SolicitarNotas | |
| // Esta función solicita 4 notas | |
| // Desarrollo por: Jaime Vilorio | |
| Definir n1, n2, n3, n4 Como Entero | |
| Definir promedio Como Real | |
| Imprimir "Indica la primera nota: " | |
| Leer n1 | |
| Imprimir "Indica la segunda nota: " |
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
| Funcion Sumar(a, b) | |
| Imprimir a + b | |
| FinFuncion | |
| Funcion r = SumarDosNumeros(a, b) | |
| Definir r Como Entero | |
| // Aquí estoy retornando el resultado de la suma | |
| r = a + b | |
| FinFuncion |
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 switch | |
| Definir i, sw Como Entero | |
| i = 1 | |
| sw = 1 // switch, bandera o flag | |
| Mientras i <= 10 Hacer | |
| Si sw = 1 Entonces | |
| Imprimir "Encendido" |
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
| Funcion r = CalcularPromedioNotas(n1, n2, n3, n4) | |
| Definir r Como Real | |
| r = (n1 + n2 + n3 + n4) / 4 | |
| FinFuncion | |
| Funcion MostrarLiteral(nota) | |
| Si nota < 70 Entonces | |
| Imprimir "Sacaste una F" | |
| SiNo |
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
| Funcion r = SumarDosNumeros(num1, num2) | |
| Definir r Como Entero | |
| r = num1 + num2 | |
| FinFuncion | |
| Funcion MostrarMensaje(num) | |
| Imprimir "La suma de dos números es: ", num | |
| FinFuncion | |
| Algoritmo FuncionRetorno |
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
| Funcion Saludar | |
| Imprimir "Hola Mundo" | |
| FinFuncion | |
| Funcion SaludarNombre(nombre) | |
| Imprimir "Hola, qué tal te va ", nombre | |
| FinFuncion | |
| Algoritmo FuncionesBasicas | |
| Definir i Como Entero |
NewerOlder