0
I’m having a problem with programming visualG algorithms. need to invert an array with values assigned to it.
// opcao 18
funcao menu_18():caractere
var
inicio
escreval (" A ORDEM INVERSA É: ")
para contador de 12 ate 0 faca
escreva(" ", c[contador])
fimpara
escreval(" ")
fimfuncao
where the counter values go from 0 to 12, with characters assigned to them, but need to print the reverse of them.
example (" A B C ")
saída: (" C B A ")
what would be the best resolution to this problem?
Hi @Agenaro try to use step -1 in the loop that will go straight!
– Maurício Z.B