logo

Crowdly

PROGRAMA 2.   El siguiente programa pide una serie de datos (-4, 0, 1, 3 y 2), ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

PROGRAMA 2.  El siguiente programa pide una serie de datos (-4, 0, 1, 3 y 2), tras procesarlos obtiene un resultado. Indica el resultado obtenido:

VARIABLES

 i, m, a: ENTEROS

                t: TABLA [5] ENTEROS

COMIENZO

                PARA i<- 0 HASTA 4

                               leer (t[i])

                FIN PARA

 m <- 0

 PARA i <- 0 HASTA 4

                               SI t[i] > m

                               m <- t[i]

 FIN SI

                FIN PARA

                a <- t[4-m]

 t[4-m] <- t[m]

                t[m] <- a

                PARA i <- 0 HASTA 4

                               escribir (t[i])

                FIN PARA

FIN PROGRAMA

More questions like this

Want instant access to all verified answers on educacionadistancia.juntadeandalucia.es?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!