You are viewing a single comment's thread. Return to all comments →
read x read y echo $((x+y))$'\n'$((x-y))$'\n'$((x*y))$'\n'$((x/y))
Using for...do...done
read x read y for op in "+" "-" "*" "/"; do echo "$((x $op y))"; done
Seems like cookies are disabled on this browser, please enable them to open this website
The World of Numbers
You are viewing a single comment's thread. Return to all comments →
Using for...do...done