6
I’m having problems with this program, because when I put it to work and type a value greater than 18, a message appears saying that is missing a FIMSE and that there is a FIMENQUANTO without a ENQUANTO corresponding. This is the objective of the program:Make a program that requests fifteen ages and check the age group according to the table below. Display all input and output data.
inicio 
n <- 0
i <- 0
escreval ("Digite 15 idades: ")
enquanto (i < 15) faca
   leia (n)
   i <- i + 1
   se (n < 18) entao
      escreval ("Sua idade corresponde a classificação: criança")
   senao se (n < 30) entao
      escreval ("Sua idade corresponde a classificação: jovem")
   senao se (n < 60) entao
      escreval ("Sua idade corresponde a classificação: adulto")
   senao
      escreval ("Sua idade corresponde a classificação: idoso")
   fimse
fimenquanto
fimalgoritmo
Try to eliminate these "senao’s" and put if(n<18)then /fimse... if(n>=18 and n<30)then...fimse .... if(n<60 and n>=30)then... otherwise.... fimse
– Maurício Z.B
Vegas I managed to help you? If my answer was helpful, can you leave one up?
– Maurício Z.B