Escolar Documentos
Profissional Documentos
Cultura Documentos
INICIO
A, B, C
A=B SI EQUILÁTER
Y O
B=C
NO
A<>
B SI ISÓSCELES
Y
A=C
NO
ESCALENO
FIN
9. IMPRIMIR Y CONTAR LOS NÚMEROS QUE SON MÚLTIPLOS
DE 2 Ó DE 3 QUE HAY ENTRE 1 Y 100
INICIO
Leer i 1
c 0
MIENTRAS; <101 HACER;
SI i= int (i/2) * 2 ó i = int (i/3) * 3
ENTONCES
c c+1
Escribir;
FIN SI
i i+1
FIN MIENTRAS
Escribir “El número de múltiplos es de:”
Escribir c
FIN
10. IMPRIMIR 10 VECES LAS SERIES DE NÚMEROS DEL 1
AL 100.
PROGRAMA diez
INICIO
Leer serie <- 0
MIENTRAS serie <= 10 HACER
numero <- 1
MIENTRAS numero <= 10 HACER
ESCRIBIR numero
numero <- numero + 1
FINMIENTRAS
serie <- serie + 1
FINMIENTRAS
FINPROGRAMA
Inicio
Suma n1,
n2
Suma <- n1 + n2
Suma
Fin
INICIO
Leer n1, n2
Suma <- n1 + n2
Mostrar suma
FIN
Inicio
Leer A,B
Aux A
A B
B Aux
A,B
Fin
Inicio
Leer b,e
P b^e
Fin
SEGÚN_SEA_CASO (opc)
CASO 1:
Mostrar “Ud. Está calculando el área de un círculo”
Mostrar “Ingrese el radio de un círculo”
Leer r
A pi * r^2
Mostrar “área del circulo”, A
Caso 2
Mostrar “Ud. Está calculando el área de un triangulo”
Mostrar “Ingrese base”
Leer b
Mostrar “ingrese altura”
Leer h
A (b * h) / 2
Mostrar “área del triángulo”, A
Caso 3
Mostrar “Ud. Está calculando el área de un rectángulo”
Mostrar “Ingrese base”
Leer b
Mostrar “ingrese altura”
Leer h
A b*h
Mostrar “área del rectángulo”, A
FIN SEGÚN_SEA_CASO
FIN
INICIO
Variables descuento, recargo, monto final, precio
LEER precio
SI ((precio > 100) Y (precio <200)) entonces;
Descuento =0,20*precio
SI NO
Si (precio > = 200)
Descuento: 0,10 *precio
SI NO
Monto final < precio --- descuento
Mostrar descuento, moto final
FIN SI
SINO
Rec = 0,00* precio
Mostrar rec, monto final
FIN
INICIO
Precio
(precio > si
100) Y
Descuento =0,20*precio
(precio
<200)
si
Precio Descuento: 0,10 *precio
>
=200
INICIO
X 1
Pago acumulado 0
MIENTRAS X <=30hacer
LEER cons
SI cons > 50 entonces
SI NO
Des< 0
FIN SI
Pago < const – descuento
Pago acumulado pago acumulado + pago
ESCRIBIR pago
X x–1
FIN MIENTRAS
ESCRIBIR PAGO ACUMULADO
FIN
Inicio
Var a,b,c,d, promedio
Leer (a,b,c,d)
Escribir “promedio = (a + b+ c + d) / 4”
Si promedio > = 10
Escribir “aprobado”
Sino
Escribir “reprobado”
Fin Si
Fin
Inicio
A,B,C,D
Prome SI
dio =
(a,b,c, Aprobado
d) / 4
NO
Reprobado
FIN