Calcula Dora

2
ERIKA MAGALY PINZON B. SALOME ROJAS RODRIGUEZ RAMIRO ALFONSO DUARTE. Realizar un algoritmo que simule una calculadora con sus 4 operaciones básicas y pida 2 valores por teclado para realizar la operación seleccionada. Proceso calculadora Escribir "que quieres hacer?" Escribir "1:sumar"; Escribir "2:restar"; Escribir "3:multiplicar"; Escribir "4:dividir"; Leer a; Si a=1 Entonces Escribir "digita un valor"; Leer b; Escribir "digita un segundo valor" Leer c; d<-b+c Escribir "la suma de ", b, " + ", c, "=", d Sino Si a=2 Entonces Escribir "digita un valor" Leer b; Escribir "digite un segundo valor" leer c; d<-b-c Escribir "la suma de ", b, " - ", c, "=", d Sino SI a=3 Entonces

Transcript of Calcula Dora

Page 1: Calcula Dora

ERIKA MAGALY PINZON B.

SALOME ROJAS RODRIGUEZ

RAMIRO ALFONSO DUARTE.

Realizar un algoritmo que simule una calculadora con sus 4 operaciones básicas y pida 2 valores por teclado para realizar la operación seleccionada.

Proceso calculadora

Escribir "que quieres hacer?"

Escribir "1:sumar";

Escribir "2:restar";

Escribir "3:multiplicar";

Escribir "4:dividir";

Leer a;

Si a=1 Entonces

Escribir "digita un valor";

Leer b;

Escribir "digita un segundo valor"

Leer c;

d<-b+c

Escribir "la suma de ", b, " + ", c, "=", d

Sino

Si a=2 Entonces

Escribir "digita un valor"

Leer b;

Escribir "digite un segundo valor"

leer c;

d<-b-c

Escribir "la suma de ", b, " - ", c, "=", d

Sino

SI a=3 Entonces

Escribir "digite un valor"

Leer b;

Page 2: Calcula Dora

Escribir "digita un segundo valor"

Leer c;

d<-b*c

Escribir "la suma de ", b, " * ", c, "=", d

sino

Si a=4 Entonces

Escribir "digite un valor"

leer b;

Escribir "digite un segundo valor"

Leer c;

d<-b/c

Escribir "la suma de ", b, " / ", c, "=", d

Fin Si

Fin Si

Fin Si

finsi

FinProceso