Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
207 B
2
Indexable
Never
#!/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