I'm trying to make this snippet of my code work
enquanto(n <> "s") e (n <> "n") faca
escreva("")
leia(n)
fimenquanto
The enquanto (...) faca
is similar to while (...) do
of other languages, check in addition if the syntax is correct. In addition, VisuAlg is full of bugs.
In my tests, just separating the condition from the while, the code ran. Here is the code:
enquanto (n <> "s") e (n <> "n") faca
escreva("Texto de Teste")
leia(n)
fimenquanto