Virajsinh

Two_Value_Cal_OS_Script

Sep 14th, 2017
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. echo "Enter The Num 1 :"
  2. read a
  3. echo "Enter The Num 2 :"
  4. read b
  5. g=$(echo "scale=2; $a + $b"|bc)
  6. h=$(echo "scale=2; $a * $b"|bc)
  7. i=$(echo "scale=2; $a - $b"|bc)
  8. j=$(echo "scale=2; $a / $b"|bc)
  9. echo "Sub is : "$g
  10. echo "Mul is : "$h
  11. echo "Min is : "$i
  12. echo "Div is : "$jd
Add Comment
Please, Sign In to add comment