Documentos de Académico
Documentos de Profesional
Documentos de Cultura
INFORMATICOS
EVIDENCIA: EJERCICIOS DE ESTRUCTRUAS SELECTIVAS
APRENDIZ
INSTRUCTOR
CURSO
PROGRAMACION
2020
Hacer un DFD que nos verifique si el numero ingresado es divisible para 5
Algoritmo numero divisible por 5
Inicio
Entero: num;
Escribir “digite un numero”;
Lea: num;
Si (num /5)=0 entonces
Escribir “el numero si es divisible por cinco”;
Sino
Escribir “el numero no es divsiible por 5”;
Fin si
Fin
Inicio
Entero: n1,n2;
Escribir ”digite el primer numero”;
Lea: n1;
Escribir “ digite el numero 2”;
Lea: n2;
Si ( n1>n2) entonces
Escribir “n1 es mayor que n2”
Sino
Si (num1 = n2) entonces
Escribir “n1 es igual a n2”;
Sino
Escribir “n1 es menor que n2”;
Fin si
Fin si
Fin algorimo
Inicio
Entero: num;
Si (num/2)= 0 entonces
Escribir “ el numero es par”;
Sino
Escribir “el numero es impar”;
Finsi
Fin
Hacer un DFD que permita determinar si un número ingresado es positivo o
negativo.
Inicio
Entero: n;
Escriba “digite un numero”;
Lea: n;
Si n = o entonces
Entonces
Escribir “el numero es neutro”
Sino
si n > 0 entonces
escribir “el numero n es positivo”
sino
escribir “ el numero n es negativo”
fin si
fin si
fin algorimo