I wrote the following pseudocode only I am getting the following error: The program scope was not closed properly. enter the '}'
character to correct the problem. I already tried to close with '}'
only it ends up generating more errors, could anyone help me?
programa
{ Var cont, somatoria: inteiro
funcao inicio()
{ cont ← 0
para cont ← 1 Ate 100 Faca
soma ← soma + cont
cont ← cont + 1
fim para
escreva "A somatoria é: ", soma
}
}