0
algoritmo "semnome"
// Função :
// Autor :
// Data : 06/02/2018
// Seção de Declarações
var
veto1 : vetor[0..9] de inteiro
veto2 : vetor[0..9] de inteiro
j,i : inteiro
inicio
para i de 0 ate 9 faca
leia(veto1[i])
fimpara
para i de 0 ate 9 faca
para j de 0 ate 9 faca
se(veto1[i] <> veto1[j])entao
veto2[i] <- veto1[i]
fimse
fimpara
fimpara
para i de 0 ate 9 faca
escreva(veto2[i])
fimpara
fimalgoritmo
I want to take 10 numbers and store in a vector the vector 1 that already got want now to take the values and put all in the vector 2 but excluding the repetition example 1.2.3.4.4.5.6.7.8.9 appears only 123456789
Everton, ideal is always putting the source code instead of images (https://answall.com/help/how-to-ask).
– rLinhares
Change now, I’m sorry
– Everton Figueiredo
@rLinhares already modified you could help me?
– Everton Figueiredo
I disagree on this subject in this answer: https://answall.com/a/236929/64969
– Jefferson Quesado
Also worth reading here: https://answall.com/a/236518/64969
– Jefferson Quesado