4
Can anyone help me with an exercise in visualg? is the following: the exercise asks so:
Write a program that reads a person’s age. At the end, show whether that person is of legal age or not.
Console
What is your age: 17.
adult = FALSE
I want to present in the end false result for those who are under 18 and true for those who are over 18.
algoritmo"exercício"
var
// Seção de Declarações das variáveis 
  Idade: inteiro
  Valor: logico
inicio
// Seção de Comandos, procedimento, funções, operadores, etc... 
  Idade <- (18)
  escreva ("Digite sua idade: ")
  leia (idade)
  escreva
fimalgoritmo
The code I made is the one above but is giving error.