Proceso MenudeOpciones
Repetir
LIMPIAR PANTALLA
Escribir "Mostrar Menu de Opciones"
Escribir " 1. SUMA"
Escribir " 2. RESTA"
Escribir " 3. MULTIPLICACION"
Escribir " 4. DIVICIOM"
Escribir " 5. SALIR"
Escribir "ELIJA UNA OPCION (1-5) :"
Leer OP
Segun OP Hacer
1:
Escribir "OPCION SUMA"
Escribir "INGRESE EL PRIMER NUMERO:"
Leer A
Escribir "INGRESE EL SEGUNDO NUMERO:"
Leer B
C <- A+B
Escribir "EL RESULTADO ES:",C
2:
Escribir "OPCION RESTA"
Escribir "INGRESE EL PRIMER NUMERO"
Leer A
Escribir "INGRESE EL SEGUNDO NUMERO"
Leer B
C <-A-B
Escribir "ESCRIBIR EL RESULTADO ES:",C
3:
Escribir "OPCION MULTIPLICACION"
Escribir "INGRESE EL PRIMER NUMERO"
Leer A
Escribir "INGRESE EL SEGUNDO NUMERO"
Leer B
C <-A*B
Escribir "ESCRIBIR EL RESULTADO ES:",C
4:
Escribir "OPCION DIVICION"
Escribir "INGRESE EL PRIMER NUMERO (DIVISOR)"
Leer A
Escribir "INGRESE EL SEGUNDO NUMERO (DIVISOR)"
Leer B
Si (B==0) Entonces
Escribir "NO EXISTE LA DIVICION POR CERO (0)"
Sino
C<-A/B
Escribir "ESCRIBIR EL RESULTADO ES :",C
Fin Si
5:
Escribir "GRACIAS POR SU USO"1
1
De otro modo:
Escribir "escribir opcion no valida"
FinSegun
Escribir "precione tecla para continuar"
Esperar tecla
Hasta que op=5
FinProces
lunes, 29 de febrero de 2016
Menu de opciones
0:23
No comments
Mostrar Menu de Opciones
1. SUMA
2. RESTA
3. MULTIPLICACION
4. DIVICIOM
5. SALIR
ELIJA UNA OPCION (1-5) :
> 1
OPCION SUMA
INGRESE EL PRIMER NUMERO:
> 45
INGRESE EL SEGUNDO NUMERO:
> 69
EL RESULTADO ES:114
precione tecla para continua






0 comentarios:
Publicar un comentario