2
It was performed the reading of a vector of n positions, as I do to determine the number that appears more and the position where it is?
programa {
funcao inicio(){
inteiro vetor[]
inteiro numero, conta
inteiro i, j, n
leia(n)
para (i = 0; i < n; i++){
leia(vetor[i])
}
para (i = 0; i < n; i++){
para (j = 0; j < n; j++){
se (vetor[i] == vetor[j] e i != j){
escreva("numeros repetido ", vetor[i], " posição ", i,", ", j, "\n")
}
}
}
}
}
I can’t determine which number repeats the most, what I’ve been able to determine is where there are repeats.
And what’s the problem? What can we help you with?
– Maniero
What is this programming language? Since you are a new user, I would advise you to take a tour at this link.
– Sam
https://answall.com/questions/208891/buscar-n%C3%Bameros-repetidos-em-lista-com-visualg
– R.Santos
Good morning, try to create another vector and then write the position value of v1 and in v2 you use only counter. If you don’t succeed, let us know in the comments that I put the solution
– Maurício Z.B