Help with code in Visualg

1

I'm trying to make this snippet of my code work

enquanto(n <> "s") e (n <> "n") faca
escreva("")
leia(n)
fimenquanto

but it returns this error

    
asked by anonymous 03.10.2017 / 00:01

1 answer

0

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
    
03.10.2017 / 00:36