Está en la página 1de 4

UNIDAD 1: METODOLOGIA DE LA PROGRAMACION DE LOS SISTEMAS

INFORMATICOS
EVIDENCIA: EJERCICIOS DE ESTRUCTRUAS SELECTIVAS

APRENDIZ

LEONARDO ECHEVERRY PEREA

INSTRUCTOR

JULIAN ANDRES GARCIA GIRALDO

CURSO

PROGRAMACION

SERVICIO NACIONAL DE APRENDIZAJE SENA

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

Algorimo que numero es mayor


Hacer un DFD que analice si en dos números ingresados: cual es mayor,
cual es menor, o si son iguales

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

Hacer un algoritmo que calcule si una cantidad ingresada es par o impar

Algorimo número par y impar

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.

Algoritmo numero positivo y numero 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

También podría gustarte