I was reading about algorithms, but all the algorithms I read, were written in some unknown language or not invented, but somehow I could understand what was written there.
I read about Portugol , a "language" written in Portuguese that was made only to be interpreted by the human being, that would be a hello world:
Algoritmo "OlaMundo"
var
inicio
Escreval("Olá, Mundo!")
Fimalgoritmo
In this code above, I do not understand what this var
is missing in the middle of the path, and this caused me some confusion.
My question is: how to correctly write a pseudocode, so that all programmers can understand what I'm trying to interpret? Is there a defined syntax for this? Can I write as I want, in such a way that I can understand?