#! /bin/bash
while true
do
a=$((1 + RANDOM % 10))
b=$((1 + RANDOM % 10))
res=$a+$b
echo -n "$a + $b = "
read path
echo ""
if [[ "$path" = "$res" ]]
then
echo "It's true"
else
echo "It's false!!!"
fi
done
It's false!!!