Closed xnpatreyk closed 4 days ago
echo "Podaj pierwsza liczba:" read a echo "Podaj druga liczba:" read b echo "Podaj operacje (jedna z): +, - , / lub X" read opr if [ $opr = "+" ] then op=`expr $a + $b` echo "$op" elif [ $opr = "-" ] then op=`expr $a - $b` echo "$op" elif [ $opr = "/" ] then op=`expr $a / $b` echo "$op" elif [ $opr = "X" ] then op=`expr $a \* $b` echo "$op" fi
!/bin/bash