Untitled
unknown
plain_text
3 years ago
207 B
5
Indexable
#!/bin/bash if [[ $3 == "add" ]]; then echo $(($1 + $2)) elif [[ $3 == "sub" ]]; then echo $(($1 - $2)) elif [[ $3 == "mul" ]]; then echo $(($1 * $2)) elif [[ $3 == 'div' ]]; then echo $(($1 / $2)) fi
Editor is loading...