0
- Why we have 2 variables with the same name in the program in question?
- What value the program prints?
- What should we do to get the 15 printed?
- Considering the scope of variables, how do we classify the variable of line 4? And how do we classify the variable of line 8?
I have this code, and I need it to print the value 15, what should I do? Portugol Exercise.
programa
{
inteiro valor = 15
funcao inicio()
{
inteiro valor = 10
escreva("valor=", valor)
}
}
You who wrote this code or it is given in the exercise statement?
– Woss
the whole exercise is like this:
– Isa Bel
– Isa Bel