Advertisement
tamaro_skaljic

addition_and_subtraction

Jun 11th, 2020 (edited)
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.12 KB | None | 0 0
  1. num1=$1
  2. num2=$2
  3. sum=$((num1 + num2))
  4. dif=$((num1 - num2))
  5.  
  6. echo "$num1 + $num2 = $sum"
  7. echo "$num1 - $num2 = $dif"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement