#!/bin/sh
echo "Welcome to our calculator"
echo "Please insert your two numbers"
echo "Number 1:"
read number1
echo "Number 2:"
read number2
echo "Please type (+,-,/,*) if you want to add or substract or
multiply or divide respectively: "
read operand
if [ $operand = '+' ]; then
echo `expr $number1 + $number2`
elif [ $operand = '-' ]; then
echo `expr $number1 - $number2`
elif [ $operand = '/' ]; then
echo `expr $number1 / $number2`
elif [ $operand = '*' ] ;then
echo `expr $number1 * $number2`
else
echo "Invalid Input"
fi
exit 0
How can I fix this but still be able to keep if statement because I have to use if statement specifically for this assignment, so I can't use loop or anything else. Thank you in advance.