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= ( 2 / 4 ) ) or ( 40 / ( 20 + 5 ) ^ 0,5 ) = ( -12 + 13 ) )
( ( 1 ^ 0,5 >= 0,5 ) or ( 40 / ( 20 + 5 ) ^ 0,5 ) = ( -12 + 13 ) )
( ( 1 ^ 0,5 >= 0,5 ) or ( 40 / 25 ^ 0,5 ) = ( -12 + 13 ) )
( ( 1 ^ 0,5 >= 0,5 ) or ( 40 / 5 ) = ( -12 + 13 ) )
( ( 1 ^ 0,5 >= 0,5 ) or 8 = ( -12 + 13 ) )
( ( 1 ^ 0,5 ) >= 0,5 or 8 = 1 )
( 1 >= 0,5 or 8 = 1 )
( V or 8 = 1 )
( V or F )
V
Realizar y probar un pseudocodigo que lea 3 números y los muestre de forma ordenada de mayor a
menor

inicio
a : decimal
b : decimal
c : decimal
mayor : decimal
medio : decimal
menor : decimal
escribir “introduzca los valores que van a hacer ordenados”
escribir “1er. Numero”
leer a
escribir “2do. Numero”
leer b
escribir “3er. Numero”
leer c
si (a > b) and (a > c) entonces
mayor = a
si ( b > c ) entonces
medio = b
menor = c
sino
medio = c
menor = b
finsi
sino
si (b > a) and (b > c) entonces
mayor = b
si ( a > c ) entonces
medio = a
menor = c
sino
medio = c
menor = a
finsi
sino
mayor = c
si ( b > a ) entonces
medio = b
menor = a
sino
medio = a
menor = b
finsi
finsi
finsi
escribir “El número mayor es”,mayor
escribir “El número del medio es”,medio
escribir “El número menor es”,menor
fin
a b c mayor medio menor muestra
5 2 9 9 5 2 952
1 3 2 3 2 1 321
6 2 4 6 4 2 642

También podría gustarte