I'm learning to use visual g for this material here: link
In this particular code I have a very small question, which contains no answers in either material or google.
algoritmo "exemplo"
var x: real
y: inteiro
a: caractere
l: logico
inicio
x <- 2.5
y <- 6
a <- "teste"
l <- VERDADEIRO
escreval ("x", x:4:1, y+3:4) // Escreve: x 2.5 9
escreval (a, "ok") // Escreve: testeok (e depois pula linha)
escreval (a, " ok") // Escreve: teste ok (e depois pula linha)
escreval (a + " ok") // Escreve: teste ok (e depois pula linha)
escreva (l) // Escreve: VERDADEIRO
fimalgoritmo
What I did not understand is how x (2.5): 4: 1 equals 2.5? Type, or character ':' has no value and why the numbers 4 and 1?
I do not understand what this ':' character means and how it influences or not in the results.