You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 23, 2018. It is now read-only.
if [[ -z $name ]]
then
echo "bye"
break
else
echo $name
echo "enter your age:"
read age
fi
if [[ $age -eq 0 ]]
then
echo "bye"
break
elif [[ $age -gt 0 && $age -le 16 ]]
then
echo "$age"
echo "$name, your group is child"
elif [[ $age -ge 17 && $age -le 25 ]]
then
echo "$age"
echo "$name, your group is youth"
elif [[ $age -gt 25 ]]
then
echo "$age"
echo "$name, your group is adult"
fi
done