#!/bin/bash
verificar_idade() {
if [ $1 -ge 18 ]; then
echo "Você é maior de idade."
else
echo "Você é menor de idade."
fi
}
echo "Digite sua idade:"
read idade
verificar_idade "$idade"
To embed this project on your website, copy the following code and paste it into your website's HTML: