Code help in Visualg

Asked

Viewed 150 times

1

I’m trying to make that chunk of my code work

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

but it returns this error inserir a descrição da imagem aqui

1 answer

0


The enquanto (...) faca is similar to while (...) do of the other languages, also check if the syntax is correct. Also, Visualg is full of bugs.

In my tests, just separating the condition from the while, the code ran. Follows code:

enquanto (n <> "s") e (n <> "n") faca
  escreva("Texto de Teste")
  leia(n)
fimenquanto
  • Thanks was that same space in my I did while( , more was while ( , it was only separates the parenthesis.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.