0
I have a problem in my pseudocode, when I run it informs that:
the data entry of the program expected a value of the 'real' type, but no value was informed or the value is of another type;
How to solve this?
programa
{
funcao inicio()
{
real N1, N2, N3, MEDIA
inteiro QTD, cont
escreva("\nDigite a qualtidade de alunos que deseja calcular a media: ")
leia (QTD)
cont = 0
(cont< QTD) faca
{
leia(N1)
leia(N2)
leia(N3)
} enquanto(cont< QTD)
se (N2>=N3)
MEDIA=(N1+N2)/2
senao
MEDIA=(N1+N3)/2
se(MEDIA>=6)
escreva("\nAluno aprovado, Media:\n", MEDIA)
senao
escreva("\nAluno reprovado, Media:\n ", MEDIA)
{
}
}
}
first of all I would like to remind you that portugol expects a well defined syntax, and not a pseudo-code
– Math