Bash Scripting - User Input
What will be the output of this script?
echo "Enter two numbers:"
read a b
echo "$a plus $b equals $((a + b))"
echo "Enter two numbers:"
read a b
echo "$a plus $b equals $((a + b))"
read a b stores first and second inputs into a and b.$((a + b)) calculates sum of a and b.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions