Is it possible to create an algorithm in visualg that reads a letter and transforms it by another letter or by a number that was already stored in the algorithm? As simple encryption?
The logic would be:
A = B
B = C
C = D
If typed A, it appeared at the end B, and successively.
The final goal would be to read whole phrases with spaces and change by numbers or letters .. But for now, I want to know if you can do it in viualG.
I started doing, but the syntax is wrong. Ex.:
Escreval("Escreva uma letra de A a D para conversão: ")
leia(textoc)
textoc <- textocc
se textoc = a entao
escreval("Texto codificado: ")
escreval("b")
fimse