10
I was reading about algorithms, but all the algorithms that I read, they were written in some unknown language or not invented, but somehow I could understand what was written there.
I read about the Portugol, a "language" written in Portuguese that was meant only to be interpreted by humans, that would be a hello world:
Algoritmo "OlaMundo"
var
inicio
Escreval("Olá, Mundo!")
Fimalgoritmo
In this code above, I don’t understand what this is var
lost along the way, and it caused me some confusion.
My question is: how to correctly write a pseudocode, so that all programmers can understand what I am trying to interpret? Is there a syntax defined for this? I can write as I please, in such a way that I can understand?