I have a problem with my pseudocode, when I run it it says:
the data entry of the program expected a value of type 'real', but no value was informed or the value informed 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)
{
}
}
}